Open russell-pa opened 5 years ago
This is caused by NilPortugues\Sql\QueryBuilder\Builder\Syntax\PlaceholderWriter@writeNullSqlString
where an empty string is converted to NULL
(presumably to be the sql keyword, however its treated as a string value). Given values as passed via paramter binding, the correct behaviour here would be to not convert the value at all (leaving null
as null
). This issue appears to hail back from the initial implementation.
Trying to use an empty string for a comparison causes the query builder to replace it with a string of NULL.
Example: