From c503971889b465a3598c806987341c1afcb3ed4e Mon Sep 17 00:00:00 2001 From: MayerTim Date: Wed, 10 Jun 2026 23:12:18 +0200 Subject: [PATCH] test(formatter): add statement continuation corpus guards --- test/corpus/watcom/select-list-comma-spacing.expected.sql | 4 ++++ test/corpus/watcom/select-list-comma-spacing.input.sql | 4 ++++ test/corpus/watcom/update-set-continuations.expected.sql | 6 ++++++ test/corpus/watcom/update-set-continuations.input.sql | 7 +++++++ 4 files changed, 21 insertions(+) create mode 100644 test/corpus/watcom/select-list-comma-spacing.expected.sql create mode 100644 test/corpus/watcom/select-list-comma-spacing.input.sql create mode 100644 test/corpus/watcom/update-set-continuations.expected.sql create mode 100644 test/corpus/watcom/update-set-continuations.input.sql diff --git a/test/corpus/watcom/select-list-comma-spacing.expected.sql b/test/corpus/watcom/select-list-comma-spacing.expected.sql new file mode 100644 index 0000000..70b2641 --- /dev/null +++ b/test/corpus/watcom/select-list-comma-spacing.expected.sql @@ -0,0 +1,4 @@ +BEGIN + SELECT "oGtin", "oCharge", "oSeriennr" + SELECT 'a,b', "x,y", 1 + 2 +END; diff --git a/test/corpus/watcom/select-list-comma-spacing.input.sql b/test/corpus/watcom/select-list-comma-spacing.input.sql new file mode 100644 index 0000000..4a5dd60 --- /dev/null +++ b/test/corpus/watcom/select-list-comma-spacing.input.sql @@ -0,0 +1,4 @@ +begin +select "oGtin","oCharge","oSeriennr" +select 'a,b',"x,y",1+2 +end; diff --git a/test/corpus/watcom/update-set-continuations.expected.sql b/test/corpus/watcom/update-set-continuations.expected.sql new file mode 100644 index 0000000..304e976 --- /dev/null +++ b/test/corpus/watcom/update-set-continuations.expected.sql @@ -0,0 +1,6 @@ +BEGIN + UPDATE "DBA"."OP_MATERIAL_PLAN" + SET "Menge" = "vCurrentMenge" - "vMenge", + "Zeitpunkt" = CURRENT time + WHERE "lfd" = "iOPMaterialPlanLfd" +END; diff --git a/test/corpus/watcom/update-set-continuations.input.sql b/test/corpus/watcom/update-set-continuations.input.sql new file mode 100644 index 0000000..134cd33 --- /dev/null +++ b/test/corpus/watcom/update-set-continuations.input.sql @@ -0,0 +1,7 @@ +begin +update "DBA"."OP_MATERIAL_PLAN" +set "Menge" = "vCurrentMenge"-"vMenge", +"Zeitpunkt" += current time +where "lfd" = "iOPMaterialPlanLfd" +end;