You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a0033bd
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: __fixtures__/generated/generated.json
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -21294,6 +21294,14 @@
21294
21294
"misc/missing-types-12.sql": "ALTER SUBSCRIPTION my_subscription OWNER TO new_owner",
21295
21295
"misc/missing-types-13.sql": "ALTER STATISTICS my_statistics OWNER TO new_owner",
21296
21296
"misc/missing-types-14.sql": "ALTER TABLESPACE my_tablespace OWNER TO new_owner",
21297
+
"misc/merge-seclabel-1.sql": "MERGE INTO tgt.users u USING src.staged s ON u.id = s.id WHEN MATCHED THEN UPDATE SET name = s.name WHEN NOT MATCHED THEN INSERT (id, name) VALUES (s.id, s.name)",
21298
+
"misc/merge-seclabel-2.sql": "MERGE INTO tgt.users u USING src.staged s ON u.id = s.id WHEN MATCHED AND s.deleted THEN DELETE WHEN MATCHED THEN UPDATE SET name = s.name, updated_at = now() WHEN NOT MATCHED THEN DO NOTHING",
21299
+
"misc/merge-seclabel-3.sql": "MERGE INTO tgt.users u USING src.staged s ON u.id = s.id WHEN NOT MATCHED BY SOURCE THEN DELETE WHEN NOT MATCHED THEN INSERT (id) VALUES (s.id)",
21300
+
"misc/merge-seclabel-4.sql": "MERGE INTO tgt.users u USING src.staged s ON u.id = s.id WHEN NOT MATCHED THEN INSERT DEFAULT VALUES",
21301
+
"misc/merge-seclabel-5.sql": "MERGE INTO tgt.users u USING src.staged s ON u.id = s.id WHEN MATCHED THEN UPDATE SET name = s.name RETURNING u.id, u.name",
21302
+
"misc/merge-seclabel-6.sql": "SECURITY LABEL FOR anon ON COLUMN myschema.users.name IS 'MASKED WITH FUNCTION anon.fake_name()'",
21303
+
"misc/merge-seclabel-7.sql": "SECURITY LABEL FOR anon ON TABLE myschema.users IS 'sensitive'",
21304
+
"misc/merge-seclabel-8.sql": "SECURITY LABEL ON FUNCTION myschema.fn() IS 'labeled'",
21297
21305
"misc/launchql-ext-types-1.sql": "CREATE DOMAIN attachment AS jsonb CHECK ( value ?& ARRAY['url', 'mime'] AND (value->>'url') ~ '^(https?)://[^\\s/$.?#].[^\\s]*$' )",
21298
21306
"misc/launchql-ext-types-2.sql": "COMMENT ON DOMAIN attachment IS E'@name launchqlInternalTypeAttachment'",
21299
21307
"misc/launchql-ext-types-3.sql": "CREATE DOMAIN email AS citext CHECK ( value ~ '^[a-zA-Z0-9.!#$%&''*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$' )",
-- MergeWhenClause deparse support (previously: "Deparser does not handle node type: MergeWhenClause")
2
+
MERGE INTO tgt.users u USING src.staged s ONu.id=s.id WHEN MATCHED THEN UPDATESET name =s.name WHEN NOT MATCHED THEN INSERT (id, name) VALUES (s.id, s.name);
3
+
MERGE INTO tgt.users u USING src.staged s ONu.id=s.id WHEN MATCHED ANDs.deleted THEN DELETE WHEN MATCHED THEN UPDATESET name =s.name, updated_at = now() WHEN NOT MATCHED THEN DO NOTHING;
4
+
MERGE INTO tgt.users u USING src.staged s ONu.id=s.id WHEN NOT MATCHED BY SOURCE THEN DELETE WHEN NOT MATCHED THEN INSERT (id) VALUES (s.id);
5
+
MERGE INTO tgt.users u USING src.staged s ONu.id=s.id WHEN NOT MATCHED THEN INSERT DEFAULT VALUES;
6
+
MERGE INTO tgt.users u USING src.staged s ONu.id=s.id WHEN MATCHED THEN UPDATESET name =s.name RETURNING u.id, u.name;
7
+
8
+
-- SecLabelStmt qualified object names must be dot-joined (previously emitted "schema", table, column)
9
+
SECURITY LABEL FOR anon ON COLUMN myschema.users.name IS 'MASKED WITH FUNCTION anon.fake_name()';
10
+
SECURITY LABEL FOR anon ON TABLE myschema.users IS 'sensitive';
11
+
SECURITY LABEL ON FUNCTION myschema.fn() IS 'labeled';
0 commit comments