Skip to content

Commit 16b22a3

Browse files
committed
add issue #123
1 parent 0e8d4fc commit 16b22a3

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

__fixtures__/generated/generated.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21096,6 +21096,7 @@
2109621096
"misc/issues-10.sql": "CREATE INDEX \"existing_undispatched_message\" ON public.messages USING btree (\"context_id\", context_type, notification_name, \"to\", user_id)",
2109721097
"misc/issues-11.sql": "COMMENT ON COLUMN \"foo\".\"whatever\" IS $$\nSomething blah, this data may have chars like '\\n' and '\\r' in it.\n$$",
2109821098
"misc/issues-12.sql": "SELECT * from foo.bar.baz",
21099+
"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)",
2109921100
"misc/inflection-1.sql": "CREATE SCHEMA inflection",
2110021101
"misc/inflection-2.sql": "GRANT USAGE ON SCHEMA inflection TO PUBLIC",
2110121102
"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: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,12 @@ Something blah, this data may have chars like '\n' and '\r' in it.
5656
$$;
5757

5858
-- https://github.com/launchql/pgsql-parser/issues/127
59-
SELECT * from foo.bar.baz;
59+
SELECT * from foo.bar.baz;
60+
61+
-- https://github.com/launchql/pgsql-parser/issues/123
62+
CREATE AGGREGATE json_agg_strict(anyelement)(
63+
SFUNC = json_agg_strict_sfunc,
64+
STYPE = jsonb,
65+
FINALFUNC = json_agg_strict_finalfunc,
66+
INITCOND = '[]'
67+
);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ it('misc-issues', async () => {
1515
"misc/issues-9.sql",
1616
"misc/issues-10.sql",
1717
"misc/issues-11.sql",
18-
"misc/issues-12.sql"
18+
"misc/issues-12.sql",
19+
"misc/issues-13.sql"
1920
]);
2021
});

0 commit comments

Comments
 (0)