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
let sql = "CREATE TABLE orders (order_id INT REFERENCES another_table (id) MATCH FULL ON DELETE CASCADE ON UPDATE RESTRICT, customer_id INT, CONSTRAINT fk_customer FOREIGN KEY (customer_id) REFERENCES customers(customer_id) MATCH SIMPLE ON DELETE SET NULL ON UPDATE CASCADE)";
6751
6751
6752
-
let statement = pg_and_generic().verified_stmt(sql);
6753
-
match statement {
6754
-
Statement::CreateTable(CreateTable{
6755
-
columns,
6756
-
constraints,
6757
-
..
6758
-
}) => {
6759
-
// Check column-level foreign key with MATCH FULL and actions
0 commit comments