Stabilise output of multi_shard_update_delete test

pull/2166/head
Marco Slot 2018-05-11 07:29:56 +02:00
parent ed47e4e6b9
commit 61d2c0f618
3 changed files with 34 additions and 34 deletions

View File

@ -393,20 +393,20 @@ WHERE user_id IN (SELECT user_id
FROM users_test_table
UNION
SELECT user_id
FROM events_test_table) returning *;
user_id | value_1 | value_2 | value_3
---------+---------+---------+---------
8 | 4 | 13 | 0
20 | 4 | | 0
20 | 4 | | 0
20 | 4 | | 0
4 | 4 | 9 | 0
4 | 4 | 17 | 0
16 | 4 | | 0
6 | 4 | 11 | 0
6 | 4 | 15 | 0
2 | 4 | 7 | 0
2 | 4 | 19 | 0
FROM events_test_table) returning value_3;
value_3
---------
0
0
0
0
0
0
0
0
0
0
0
(11 rows)
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
-- Cursors are not supported
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;
user_id | value_1 | value_2 | value_3
---------+---------+---------+---------
8 | 4 | 0 | 0
1 | 2 | 5 | 0
(1 row)
UPDATE users_test_table SET value_2 = 5 WHERE CURRENT OF test_cursor;

View File

@ -416,20 +416,20 @@ WHERE user_id IN (SELECT user_id
FROM users_test_table
UNION
SELECT user_id
FROM events_test_table) returning *;
user_id | value_1 | value_2 | value_3
---------+---------+---------+---------
8 | 4 | 13 | 0
20 | 4 | | 0
20 | 4 | | 0
20 | 4 | | 0
4 | 4 | 9 | 0
4 | 4 | 17 | 0
16 | 4 | | 0
6 | 4 | 11 | 0
6 | 4 | 15 | 0
2 | 4 | 7 | 0
2 | 4 | 19 | 0
FROM events_test_table) returning value_3;
value_3
---------
0
0
0
0
0
0
0
0
0
0
0
(11 rows)
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
-- Cursors are not supported
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;
user_id | value_1 | value_2 | value_3
---------+---------+---------+---------
8 | 4 | 0 | 0
1 | 2 | 5 | 0
(1 row)
UPDATE users_test_table SET value_2 = 5 WHERE CURRENT OF test_cursor;

View File

@ -306,7 +306,7 @@ WHERE user_id IN (SELECT user_id
FROM users_test_table
UNION
SELECT user_id
FROM events_test_table) returning *;
FROM events_test_table) returning value_3;
UPDATE users_test_table
SET value_1 = 4
@ -634,7 +634,7 @@ WHERE users_test_table.user_id = (SELECT user_id
-- Cursors are not supported
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;
UPDATE users_test_table SET value_2 = 5 WHERE CURRENT OF test_cursor;
ROLLBACK;