Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Handle empty IN clause with quoteIdentifiers=true #196

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

aheuermann
Copy link
Contributor

This is a fix to handle cases where the optionquoteIdentifiers=true so that it doesn't quote the 1 ("1" = 0).

@c2fo-cibot c2fo-cibot bot added the size/M Denotes a PR that changes 30-99 lines label Oct 27, 2021
// if the array is empty, we return an expression that will be false
return new BooleanExpression("EQ", 1, 0);
} else {
return this.literal({1: 1});
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left this as-is, though it is likely also broken when quoteIdentifiers=true as well. Didn't want to change it though as this would be a change in behavior of the previous version.

@aheuermann aheuermann merged commit a9c80ec into master Oct 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size/M Denotes a PR that changes 30-99 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants