Files
graphify/tests/fixtures/sample_transaction.sql
T
akshitj11 6a06b652cc fix(sql): extract CREATE TABLE inside BEGIN/COMMIT blocks (#2953)
DDL wrapped in a transaction parses under a `transaction` node the statement walker never
descended into, so a CREATE TABLE inside BEGIN/COMMIT was never extracted while a top-level
one was. Recurse into transaction blocks; nested statements get the same handling, no
double-emit.
2026-08-24 14:06:55 +01:00

12 lines
195 B
PL/PgSQL

CREATE TABLE alfa (id integer PRIMARY KEY);
BEGIN;
CREATE TABLE gamma (id integer PRIMARY KEY);
CREATE TABLE delta (
id integer PRIMARY KEY,
alfa_id integer REFERENCES alfa(id)
);
COMMIT;