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 parsing of negative integer constants #249

Open
wants to merge 1 commit into
base: 16-latest
Choose a base branch
from

Conversation

msullivan
Copy link

Currently the value of negative constants are omitted. Only omit 0 constants.

An earlier attempt (#244) caused a mismatch with the protobuf json output, since that wants to omit values that are equal to the default value.

I don't really think that is particularly sensible behavior for an integer constant in an AST, but oh well.

Fixes #243.

Currently the value of negative constants are omitted. Only omit *0*
constants.

An earlier attempt (pganalyze#244) caused a mismatch with the protobuf json
output, since that wants to omit values that are equal to the default
value.

I don't *really* think that is particularly sensible behavior for an
integer constant in an AST, but oh well.

Fixes pganalyze#243.
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.

Parser incorrectly parses queries with negative and zero values
1 participant