mirror of https://github.com/citusdata/citus.git
Fix psql-dependent modifying xact tests
parent
1116805020
commit
61d493000d
|
@ -185,12 +185,12 @@ INSERT INTO labs VALUES (6, 'Bell Labs');
|
||||||
ERROR: single-shard DML commands must not appear in transaction blocks which contain multi-shard data modifications
|
ERROR: single-shard DML commands must not appear in transaction blocks which contain multi-shard data modifications
|
||||||
COMMIT;
|
COMMIT;
|
||||||
-- but the DDL should correctly roll back
|
-- but the DDL should correctly roll back
|
||||||
\d labs
|
SELECT "Column", "Type", "Modifiers" FROM table_desc WHERE relid='public.labs'::regclass;
|
||||||
Table "public.labs"
|
|
||||||
Column | Type | Modifiers
|
Column | Type | Modifiers
|
||||||
--------+--------+-----------
|
--------+--------+-----------
|
||||||
id | bigint | not null
|
id | bigint | not null
|
||||||
name | text | not null
|
name | text | not null
|
||||||
|
(2 rows)
|
||||||
|
|
||||||
SELECT * FROM labs WHERE id = 6;
|
SELECT * FROM labs WHERE id = 6;
|
||||||
id | name
|
id | name
|
||||||
|
|
|
@ -151,7 +151,7 @@ INSERT INTO labs VALUES (6, 'Bell Labs');
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
||||||
-- but the DDL should correctly roll back
|
-- but the DDL should correctly roll back
|
||||||
\d labs
|
SELECT "Column", "Type", "Modifiers" FROM table_desc WHERE relid='public.labs'::regclass;
|
||||||
SELECT * FROM labs WHERE id = 6;
|
SELECT * FROM labs WHERE id = 6;
|
||||||
|
|
||||||
-- COPY can happen after single row INSERT
|
-- COPY can happen after single row INSERT
|
||||||
|
|
Loading…
Reference in New Issue