Add order by to multi_shard_update_delete

pull/2696/head
Onder Kalaci 2019-05-02 20:09:33 +03:00
parent 2c76b4bc46
commit 5d68a13139
2 changed files with 5 additions and 5 deletions

View File

@ -773,16 +773,16 @@ SELECT * FROM test_table_1 ORDER BY 1 DESC, 2 DESC, 3 DESC;
(3 rows) (3 rows)
UPDATE test_table_1 SET col_3 = 3 WHERE date_col < now(); UPDATE test_table_1 SET col_3 = 3 WHERE date_col < now();
SELECT * FROM test_table_1; SELECT * FROM test_table_1 ORDER BY 1 DESC, 2 DESC, 3 DESC;
id | date_col | col_3 id | date_col | col_3
----+------------------------------+------- ----+------------------------------+-------
1 | Sat Apr 05 08:32:12 2014 PDT | 3
3 | Mon Jan 12 08:35:19 2111 PST | 9 3 | Mon Jan 12 08:35:19 2111 PST | 9
2 | Sun Feb 01 08:31:16 2015 PST | 3 2 | Sun Feb 01 08:31:16 2015 PST | 3
1 | Sat Apr 05 08:32:12 2014 PDT | 3
(3 rows) (3 rows)
DELETE FROM test_table_1 WHERE date_col < current_timestamp; DELETE FROM test_table_1 WHERE date_col < current_timestamp;
SELECT * FROM test_table_1; SELECT * FROM test_table_1 ORDER BY 1 DESC, 2 DESC, 3 DESC;
id | date_col | col_3 id | date_col | col_3
----+------------------------------+------- ----+------------------------------+-------
3 | Mon Jan 12 08:35:19 2111 PST | 9 3 | Mon Jan 12 08:35:19 2111 PST | 9

View File

@ -644,9 +644,9 @@ ROLLBACK;
-- Stable functions are supported -- Stable functions are supported
SELECT * FROM test_table_1 ORDER BY 1 DESC, 2 DESC, 3 DESC; SELECT * FROM test_table_1 ORDER BY 1 DESC, 2 DESC, 3 DESC;
UPDATE test_table_1 SET col_3 = 3 WHERE date_col < now(); UPDATE test_table_1 SET col_3 = 3 WHERE date_col < now();
SELECT * FROM test_table_1; SELECT * FROM test_table_1 ORDER BY 1 DESC, 2 DESC, 3 DESC;
DELETE FROM test_table_1 WHERE date_col < current_timestamp; DELETE FROM test_table_1 WHERE date_col < current_timestamp;
SELECT * FROM test_table_1; SELECT * FROM test_table_1 ORDER BY 1 DESC, 2 DESC, 3 DESC;
DROP TABLE test_table_1; DROP TABLE test_table_1;