From 7a835ce4e565fde34211d95b4f499391e5729f90 Mon Sep 17 00:00:00 2001 From: Julien Rouhaud Date: Sun, 19 Jan 2025 09:19:13 +0800 Subject: [PATCH] Fix regression test compatibility with pg16- 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. --- expected/convert.out | 2 +- sql/convert.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/expected/convert.out b/expected/convert.out index e90c96a..dc3dff5 100644 --- a/expected/convert.out +++ b/expected/convert.out @@ -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 diff --git a/sql/convert.sql b/sql/convert.sql index bd5e93c..c69fad1 100644 --- a/sql/convert.sql +++ b/sql/convert.sql @@ -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%LOCALTIMEtrue=false"]} + '{"Output": ["~NULL!1.2@''abc''^123|CURRENT_CATALOG`CURRENT_DATE?CURRENT_ROLE+CURRENT_SCHEMA-CURRENT_TIME*CURRENT_TIMESTAMP/CURRENT_USER%LOCALTIMEtrue=false"]} }'),(-4, '###### Plan -4: some properties plus unknown key', '{ "Plan": 0,