Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions __fixtures__/generated/generated.json
Original file line number Diff line number Diff line change
Expand Up @@ -21096,6 +21096,7 @@
"misc/issues-10.sql": "CREATE INDEX \"existing_undispatched_message\" ON public.messages USING btree (\"context_id\", context_type, notification_name, \"to\", user_id)",
"misc/issues-11.sql": "COMMENT ON COLUMN \"foo\".\"whatever\" IS $$\nSomething blah, this data may have chars like '\\n' and '\\r' in it.\n$$",
"misc/issues-12.sql": "SELECT * from foo.bar.baz",
"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)",
"misc/inflection-1.sql": "CREATE SCHEMA inflection",
"misc/inflection-2.sql": "GRANT USAGE ON SCHEMA inflection TO PUBLIC",
"misc/inflection-3.sql": "ALTER DEFAULT PRIVILEGES IN SCHEMA inflection \n GRANT EXECUTE ON FUNCTIONS TO PUBLIC",
Expand Down
10 changes: 9 additions & 1 deletion __fixtures__/kitchen-sink/misc/issues.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,12 @@ Something blah, this data may have chars like '\n' and '\r' in it.
$$;

-- https://github.com/launchql/pgsql-parser/issues/127
SELECT * from foo.bar.baz;
SELECT * from foo.bar.baz;

-- https://github.com/launchql/pgsql-parser/issues/123
CREATE AGGREGATE json_agg_strict(anyelement)(
SFUNC = json_agg_strict_sfunc,
STYPE = jsonb,
FINALFUNC = json_agg_strict_finalfunc,
INITCOND = '[]'
);
3 changes: 2 additions & 1 deletion packages/deparser/__tests__/kitchen-sink/misc-issues.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ it('misc-issues', async () => {
"misc/issues-9.sql",
"misc/issues-10.sql",
"misc/issues-11.sql",
"misc/issues-12.sql"
"misc/issues-12.sql",
"misc/issues-13.sql"
]);
});