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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The _equals function works for strings and nil, but the _does_not_equal function does not.
_equals
_does_not_equal
User.name_equals(x)
Submits either:
SELECT * FROM `users` WHERE (users.name = 'foo')
or:
SELECT * FROM `users` WHERE (users.name IS NULL)
Depending on whether x is "foo" or nil. This is correct. However this:
User.name_does_not_equal(x)
SELECT * FROM `users` WHERE (users.name != 'foo')
SELECT * FROM `users` WHERE (users.name != NULL)
The later of which is incorrect. It should be users.name IS NOT NULL.
users.name IS NOT NULL
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
_equals
function works for strings and nil, but the_does_not_equal
function does not.Submits either:
or:
Depending on whether x is "foo" or nil. This is correct. However this:
Submits either:
or:
The later of which is incorrect. It should be
users.name IS NOT NULL
.The text was updated successfully, but these errors were encountered: