Skip to content
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

use IS NULL for query if the value is null #38

Merged
merged 1 commit into from
May 2, 2020

Conversation

kazegusuri
Copy link
Collaborator

@kazegusuri kazegusuri commented May 2, 2020

If an index uses nullable columns for the keys, the arguments of the generated function can be nil. However the current query does not respect the nil value. Then the query is invalid like WHERE value = NULL.
This change fixed to use a query like WHERE value IS NULL if the value is nil.

@kazegusuri kazegusuri merged commit 2a5979a into master May 2, 2020
@kazegusuri kazegusuri deleted the generate-is-null-query branch May 2, 2020 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant