Normalize tests: shard table names for multi_subtransactions

pull/3336/head
Jelte Fennema 2020-01-03 11:56:04 +01:00
parent 883ee9121f
commit 0c23caeb75
2 changed files with 6 additions and 6 deletions

View File

@ -25,8 +25,8 @@ s/"(referencing_table_0_|referenced_table2_)[0-9]+"/"\1xxxxxxx"/g
s/\(id\)=\([0-9]+\)/(id)=(X)/g
s/\(ref_id\)=\([0-9]+\)/(ref_id)=(X)/g
## shard table names for multi_subtransactions
#s/"t2_[0-9]+"/"t2_xxxxxxx"/g
# shard table names for multi_subtransactions
s/"t2_[0-9]+"/"t2_xxxxxxx"/g
#
## shard table names for custom_aggregate_support
#s/ daily_uniques_[0-9]+ / daily_uniques_xxxxxxx /g

View File

@ -207,28 +207,28 @@ with r AS (
update t1 set b = b - 10
returning *
) insert into t2 select * from r;
ERROR: new row for relation "t2_1190005" violates check constraint "t2_b_check"
ERROR: new row for relation "t2_xxxxxxx" violates check constraint "t2_b_check"
rollback to savepoint s1;
savepoint s2;
with r AS (
update t2 set b = b - 10
returning *
) insert into t1 select * from r;
ERROR: new row for relation "t2_1190004" violates check constraint "t2_b_check"
ERROR: new row for relation "t2_xxxxxxx" violates check constraint "t2_b_check"
rollback to savepoint s2;
savepoint s3;
with r AS (
insert into t2 select i, i+1 from generate_series(-10,-5) i
returning *
) insert into t1 select * from r;
ERROR: new row for relation "t2_1190004" violates check constraint "t2_b_check"
ERROR: new row for relation "t2_xxxxxxx" violates check constraint "t2_b_check"
rollback to savepoint s3;
savepoint s4;
with r AS (
insert into t1 select i, i+1 from generate_series(-10,-5) i
returning *
) insert into t2 select * from r;
ERROR: new row for relation "t2_1190005" violates check constraint "t2_b_check"
ERROR: new row for relation "t2_xxxxxxx" violates check constraint "t2_b_check"
rollback to savepoint s4;
with r AS (
update t2 set b = b + 1