Skip to content

Commit 4c24c19

Browse files
committed
fixtures for #101
1 parent f4b9c0f commit 4c24c19

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

__fixtures__/generated/generated.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21098,6 +21098,8 @@
2109821098
"misc/issues-12.sql": "SELECT * from foo.bar.baz",
2109921099
"misc/issues-13.sql": "CREATE AGGREGATE json_agg_strict(anyelement)(\n SFUNC = json_agg_strict_sfunc,\n STYPE = jsonb,\n FINALFUNC = json_agg_strict_finalfunc,\n INITCOND = '[]'\n)",
2110021100
"misc/issues-14.sql": "SELECT (1 IS NOT NULL) IS DISTINCT FROM (2 IS NOT NULL)",
21101+
"misc/issues-15.sql": "select \"A\" from \"table_name\"",
21102+
"misc/issues-16.sql": "select \"AA\" from \"table_name\"",
2110121103
"misc/inflection-1.sql": "CREATE SCHEMA inflection",
2110221104
"misc/inflection-2.sql": "GRANT USAGE ON SCHEMA inflection TO PUBLIC",
2110321105
"misc/inflection-3.sql": "ALTER DEFAULT PRIVILEGES IN SCHEMA inflection \n GRANT EXECUTE ON FUNCTIONS TO PUBLIC",

__fixtures__/kitchen-sink/misc/issues.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,8 @@ CREATE AGGREGATE json_agg_strict(anyelement)(
6767
);
6868

6969
-- https://github.com/launchql/pgsql-parser/issues/62
70-
SELECT (1 IS NOT NULL) IS DISTINCT FROM (2 IS NOT NULL);
70+
SELECT (1 IS NOT NULL) IS DISTINCT FROM (2 IS NOT NULL);
71+
72+
-- https://github.com/launchql/pgsql-parser/issues/101
73+
select "A" from "table_name";
74+
select "AA" from "table_name";

packages/deparser/__tests__/kitchen-sink/misc-issues.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ it('misc-issues', async () => {
1717
"misc/issues-11.sql",
1818
"misc/issues-12.sql",
1919
"misc/issues-13.sql",
20-
"misc/issues-14.sql"
20+
"misc/issues-14.sql",
21+
"misc/issues-15.sql",
22+
"misc/issues-16.sql"
2123
]);
2224
});

0 commit comments

Comments
 (0)