Skip to content

Commit

Permalink
Fix regression test compatibility with pg16-
Browse files Browse the repository at this point in the history
Numeric with a base, like 0b1 or 0x1 are not supported by the parser before
pg16, so we cannot test those in the regression tests for a test run against
all major versions.
  • Loading branch information
rjuju committed Jan 19, 2025
1 parent de38dd3 commit 7a835ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion expected/convert.out
Original file line number Diff line number Diff line change
Expand Up @@ -2289,7 +2289,7 @@ SELECT '### '||'normalize '||title||E'\n'||

=======
### normalize ###### Plan -3: expression tokens 1/1
{"o":["~?!?@?#?^?&?|?`???+?-?*?/?%?<?>?=?"]}
{"o":["~?!?@?^?|?`???+?-?*?/?%?<?>?=?"]}

=======
### normalize ###### Plan -2: all properties 2/2
Expand Down
2 changes: 1 addition & 1 deletion sql/convert.sql
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ INSERT INTO plans (VALUES
"Worker Number": 0,
"Async Capable": 0
}'),(-3, '###### Plan -3: expression tokens 1/1',
'{"Output": ["~NULL!1.2@''abc''#0b111^0xfff&123|CURRENT_CATALOG`CURRENT_DATE?CURRENT_ROLE+CURRENT_SCHEMA-CURRENT_TIME*CURRENT_TIMESTAMP/CURRENT_USER%LOCALTIME<LOCALTIMESTAMP>true=false"]}
'{"Output": ["~NULL!1.2@''abc''^123|CURRENT_CATALOG`CURRENT_DATE?CURRENT_ROLE+CURRENT_SCHEMA-CURRENT_TIME*CURRENT_TIMESTAMP/CURRENT_USER%LOCALTIME<LOCALTIMESTAMP>true=false"]}
}'),(-4, '###### Plan -4: some properties plus unknown key',
'{
"Plan": 0,
Expand Down

0 comments on commit 7a835ce

Please sign in to comment.