mikecao/sparrow

Null in where()

fdcore opened this issue · 2 comments

I have table with field default is null.

id user email
1 name1 name1@domain.com
2 name2 name2@domain.com
3 name3 NULL

Query:

SELECT users WHERE email IS NULL

Code:

$db->from('users')->where('email', null)->many();

This code is not work.

UDK commented

@fdcore Hi, why didn’t you make your decision through pull request?