-
-
Probably like this, since the operator needs to be overridden too: $builder->where('left', 'NULL', 'IS'); or this: $builder->where('left', 'IS NULL', ''); -
This is why I added this function: to avoid having to check how to force the "where" function to be used in that case. Plus there are already some other "where" functions in there like this ("where_like", "where_in", "where_between") whose functionality could have been used within the "where" function directly as well -
ok, fair enough. But if you add a new special function for where, you also have to add the corresponding ones for having and on.
-
-
Change Summary:
add having and on null functions
Summary: |
|
||||
|---|---|---|---|---|---|
Diff: |
Revision 2 (+327) |

Sorry, this doesn't belong in the normal dml query builder, since that use case is already covered by the normal where() method. For example like this: $builder->where('left', 'IS NULL');