Skip to content

Commit 5009da9

Browse files
committed
setup for issue #62
1 parent f54ffa4 commit 5009da9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

__fixtures__/generated/generated.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21091,6 +21091,7 @@
2109121091
"misc/issues-5.sql": "ALTER TABLE new_style ADD CONSTRAINT uq_val1_val2_new UNIQUE NULLS NOT DISTINCT (val1, val2)",
2109221092
"misc/issues-6.sql": "INSERT INTO\n public.people (id, name, epithet, is_great, gender, type_id, date_of_birth, date_of_death, place_of_birth, place_of_death, biography, canonical_status_id, image_url, source_url)\nVALUES\n (1, 'Asterius', 'of Amasea', FALSE, 'M', 1, '0350-01-01', '0410-01-01', 'Cappadocia', 'Amasea', NULL, 1, NULL, NULL),\n (2, 'Ausonius', NULL, FALSE, 'M', 1, '0310-01-01', '0395-01-01', 'Burdigala', NULL, NULL, NULL, NULL, NULL)\nON CONFLICT DO NOTHING",
2109321093
"misc/issues-7.sql": "COMMENT ON COLUMN \"foo\".\"whatever\" IS $$\nSomething blah, this data may have chars like '\\n' and '\\r' in it.\n$$",
21094+
"misc/issues-8.sql": "SELECT (1 IS NOT NULL) IS DISTINCT FROM (2 IS NOT NULL)",
2109421095
"misc/inflection-1.sql": "CREATE SCHEMA inflection",
2109521096
"misc/inflection-2.sql": "GRANT USAGE ON SCHEMA inflection TO PUBLIC",
2109621097
"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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,7 @@ ON CONFLICT DO NOTHING;
2929
-- https://github.com/launchql/pgsql-parser/issues/124
3030
COMMENT ON COLUMN "foo"."whatever" IS $$
3131
Something blah, this data may have chars like '\n' and '\r' in it.
32-
$$;
32+
$$;
33+
34+
-- https://github.com/launchql/pgsql-parser/issues/62
35+
SELECT (1 IS NOT NULL) IS DISTINCT FROM (2 IS NOT NULL);

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ it('misc-issues', async () => {
1010
"misc/issues-4.sql",
1111
"misc/issues-5.sql",
1212
"misc/issues-6.sql",
13-
"misc/issues-7.sql"
13+
"misc/issues-7.sql",
14+
"misc/issues-8.sql"
1415
]);
1516
});

0 commit comments

Comments
 (0)