mirror of
https://github.com/safishamsi/graphify.git
synced 2026-08-30 10:16:45 +00:00
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.
12 lines
195 B
PL/PgSQL
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;
|