-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
query for columns that are not null #109
Comments
Hi, Did you tried |
That actually seems to work, judging from the tests. I'm not entirely sure, why, though ... Since the code I have to maintain works very extensively with arrays, I would like to explicitly add where("column", "is not null") ... what do you think? |
…rana#109) Also included explicit test for previously working "column is not null" where option
How then you distinct when column contains string |
That's a good point you make there. Intuitively I would answer that with |
Just a quick thought: |
Hi, This might work: $db->table()->where("NOT $column", null); On Tue, Oct 20, 2015 at 8:29 PM, Vladimir Barbarosh <
|
Right from the docs. )
|
So I guess it would be better to remove the new code in |
What would be a good way to query for a column that IS NOT NULL?
From reading the code I can see no way to do that.
While waiting for an answer I will prepare a PR how I would do it.
Cheers! :-)
The text was updated successfully, but these errors were encountered: