Skip to content

Commit

Permalink
[postgresql] Fix for #4354 (#4354)
Browse files Browse the repository at this point in the history
  • Loading branch information
be-happy4 committed Dec 11, 2024
1 parent 451d59c commit af07bb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sql/postgresql/PostgreSQLLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -1317,6 +1317,10 @@ InvalidUnterminatedHexadecimalStringConstant: 'X' UnterminatedStringConstant;

Integral: Digits;

HexadecimalIntegral: '0x' Digits;

BinaryIntegral: '0b' Digits;

NumericFail: Digits '..' {this.HandleNumericFail();};

Numeric:
Expand Down
2 changes: 2 additions & 0 deletions sql/postgresql/PostgreSQLParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -4345,6 +4345,8 @@ fconst

iconst
: Integral
| HexadecimalIntegral
| BinaryIntegral
;

sconst
Expand Down

0 comments on commit af07bb3

Please sign in to comment.