We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have to check for a column being either a specific value or NULL. The current way to do it I found is:
['OR' => ['AND #1' => ['column' => 42], 'AND #2' => ['column' => null]]]
But it would be so much nicer to just write
['column' => [42, null]]
This code currently gives you
column IN (42, null)
which at least in MariaDB doesn't work. My suggestion is to change the IN() generation code in a way that the SQL generated becomes
column IN (42) OR column IS NULL
The text was updated successfully, but these errors were encountered:
This will be confusing.
Think about:
["column" => [42, 43, 44, 45....]]
["column[!]" => null]
It's no need to combine, and will be conflict for the general usage. ["column" => [value1, value2...]]
["column" => [value1, value2...]]
Sorry, something went wrong.
No branches or pull requests
I have to check for a column being either a specific value or NULL. The current way to do it I found is:
But it would be so much nicer to just write
This code currently gives you
which at least in MariaDB doesn't work. My suggestion is to change the IN() generation code in a way that the SQL generated becomes
The text was updated successfully, but these errors were encountered: