Open it-can opened 7 years ago
Laravel: 5.5.18
Hi I was testing this package and see some strange behavoir with nullable columns. I have this query:
Invoice::search('fox') ->where('exported', null) ->get();
This generates a query like this:
select * from `invoice` where exported = '' AND (`name` LIKE '%fox%')
What I expect:
select * from `invoice` where exported = null AND (`name` LIKE '%fox%')
This is incorrect... Also adding a extra parameter to the where is incorrect:
Invoice::search('fox') ->where('exported', '!=', null) ->get();
select * from `invoice` where exported = '!=' AND (`name` LIKE '%fox%')
select * from `invoice` where exported != null AND (`name` LIKE '%fox%')
Laravel: 5.5.18
Hi I was testing this package and see some strange behavoir with nullable columns. I have this query:
This generates a query like this:
What I expect:
This is incorrect... Also adding a extra parameter to the where is incorrect:
What I expect: