Closed zx1986 closed 8 years ago
I think it should work with a real null
value:
$failed_counter = $calloutdata->where('created_at', 'LIKE', "$today%")
->andWhere('calling_result', '!=', '2')
->orWhere('calling_result', 'IS', null)
->count();
@lukasbestle I had tried that, not work either :-(
The database classes have been refactored in the Kirby 2.3 beta 2. null
as value should indeed work and should have worked previously.
After reading through your code again, I don't really understand what you are trying to do. Couldn't you even remove the line where you are checking for null
since it is always not equal to 2 anyway?
I'm closing this. Please reopen if you still have this issue and it is related to Kirby. Thanks.
There is no
something is NULL
condition for SQL, right?not working with NULL columns :-(