mirror of https://github.com/citusdata/citus.git
Stabilise output of multi_shard_update_delete test
parent
ed47e4e6b9
commit
61d2c0f618
|
@ -393,20 +393,20 @@ WHERE user_id IN (SELECT user_id
|
||||||
FROM users_test_table
|
FROM users_test_table
|
||||||
UNION
|
UNION
|
||||||
SELECT user_id
|
SELECT user_id
|
||||||
FROM events_test_table) returning *;
|
FROM events_test_table) returning value_3;
|
||||||
user_id | value_1 | value_2 | value_3
|
value_3
|
||||||
---------+---------+---------+---------
|
---------
|
||||||
8 | 4 | 13 | 0
|
0
|
||||||
20 | 4 | | 0
|
0
|
||||||
20 | 4 | | 0
|
0
|
||||||
20 | 4 | | 0
|
0
|
||||||
4 | 4 | 9 | 0
|
0
|
||||||
4 | 4 | 17 | 0
|
0
|
||||||
16 | 4 | | 0
|
0
|
||||||
6 | 4 | 11 | 0
|
0
|
||||||
6 | 4 | 15 | 0
|
0
|
||||||
2 | 4 | 7 | 0
|
0
|
||||||
2 | 4 | 19 | 0
|
0
|
||||||
(11 rows)
|
(11 rows)
|
||||||
|
|
||||||
UPDATE users_test_table
|
UPDATE users_test_table
|
||||||
|
@ -750,11 +750,11 @@ ERROR: more than one row returned by a subquery used as an expression
|
||||||
CONTEXT: while executing command on localhost:57637
|
CONTEXT: while executing command on localhost:57637
|
||||||
-- Cursors are not supported
|
-- Cursors are not supported
|
||||||
BEGIN;
|
BEGIN;
|
||||||
DECLARE test_cursor CURSOR FOR SELECT * FROM users_test_table;
|
DECLARE test_cursor CURSOR FOR SELECT * FROM users_test_table ORDER BY user_id;
|
||||||
FETCH test_cursor;
|
FETCH test_cursor;
|
||||||
user_id | value_1 | value_2 | value_3
|
user_id | value_1 | value_2 | value_3
|
||||||
---------+---------+---------+---------
|
---------+---------+---------+---------
|
||||||
8 | 4 | 0 | 0
|
1 | 2 | 5 | 0
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
UPDATE users_test_table SET value_2 = 5 WHERE CURRENT OF test_cursor;
|
UPDATE users_test_table SET value_2 = 5 WHERE CURRENT OF test_cursor;
|
||||||
|
|
|
@ -416,20 +416,20 @@ WHERE user_id IN (SELECT user_id
|
||||||
FROM users_test_table
|
FROM users_test_table
|
||||||
UNION
|
UNION
|
||||||
SELECT user_id
|
SELECT user_id
|
||||||
FROM events_test_table) returning *;
|
FROM events_test_table) returning value_3;
|
||||||
user_id | value_1 | value_2 | value_3
|
value_3
|
||||||
---------+---------+---------+---------
|
---------
|
||||||
8 | 4 | 13 | 0
|
0
|
||||||
20 | 4 | | 0
|
0
|
||||||
20 | 4 | | 0
|
0
|
||||||
20 | 4 | | 0
|
0
|
||||||
4 | 4 | 9 | 0
|
0
|
||||||
4 | 4 | 17 | 0
|
0
|
||||||
16 | 4 | | 0
|
0
|
||||||
6 | 4 | 11 | 0
|
0
|
||||||
6 | 4 | 15 | 0
|
0
|
||||||
2 | 4 | 7 | 0
|
0
|
||||||
2 | 4 | 19 | 0
|
0
|
||||||
(11 rows)
|
(11 rows)
|
||||||
|
|
||||||
UPDATE users_test_table
|
UPDATE users_test_table
|
||||||
|
@ -773,11 +773,11 @@ ERROR: more than one row returned by a subquery used as an expression
|
||||||
CONTEXT: while executing command on localhost:57637
|
CONTEXT: while executing command on localhost:57637
|
||||||
-- Cursors are not supported
|
-- Cursors are not supported
|
||||||
BEGIN;
|
BEGIN;
|
||||||
DECLARE test_cursor CURSOR FOR SELECT * FROM users_test_table;
|
DECLARE test_cursor CURSOR FOR SELECT * FROM users_test_table ORDER BY user_id;
|
||||||
FETCH test_cursor;
|
FETCH test_cursor;
|
||||||
user_id | value_1 | value_2 | value_3
|
user_id | value_1 | value_2 | value_3
|
||||||
---------+---------+---------+---------
|
---------+---------+---------+---------
|
||||||
8 | 4 | 0 | 0
|
1 | 2 | 5 | 0
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
UPDATE users_test_table SET value_2 = 5 WHERE CURRENT OF test_cursor;
|
UPDATE users_test_table SET value_2 = 5 WHERE CURRENT OF test_cursor;
|
||||||
|
|
|
@ -306,7 +306,7 @@ WHERE user_id IN (SELECT user_id
|
||||||
FROM users_test_table
|
FROM users_test_table
|
||||||
UNION
|
UNION
|
||||||
SELECT user_id
|
SELECT user_id
|
||||||
FROM events_test_table) returning *;
|
FROM events_test_table) returning value_3;
|
||||||
|
|
||||||
UPDATE users_test_table
|
UPDATE users_test_table
|
||||||
SET value_1 = 4
|
SET value_1 = 4
|
||||||
|
@ -634,7 +634,7 @@ WHERE users_test_table.user_id = (SELECT user_id
|
||||||
|
|
||||||
-- Cursors are not supported
|
-- Cursors are not supported
|
||||||
BEGIN;
|
BEGIN;
|
||||||
DECLARE test_cursor CURSOR FOR SELECT * FROM users_test_table;
|
DECLARE test_cursor CURSOR FOR SELECT * FROM users_test_table ORDER BY user_id;
|
||||||
FETCH test_cursor;
|
FETCH test_cursor;
|
||||||
UPDATE users_test_table SET value_2 = 5 WHERE CURRENT OF test_cursor;
|
UPDATE users_test_table SET value_2 = 5 WHERE CURRENT OF test_cursor;
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
Loading…
Reference in New Issue