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

Fix issue with empty array for IN-clause #14

Merged

Conversation

heiglandreas
Copy link
Contributor

When an IN-clause is created with an empty array PostgreSQL will blow up
with an SQL-Error as the resulting SQL would be x IN() which is not
allowed.

This commit works around that by returning a query-part that always returns
false as querying for something that is not part of something else will always return false.

When an IN-clause is created with an empty array PostgreSQL will blow up
with an SQL-Error as the resulting SQL would be ` x IN()` which is not
allowed.

This commit works around that by returning a query-part that always
returns
false as querying for something that is not part of something else will
always return false.
@codeliner
Copy link
Contributor

Thx @heiglandreas . I'll publish a bugfix release.

@codeliner codeliner merged commit e9721e2 into event-engine:master Apr 30, 2020
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.

2 participants