2019-08-26 21:00:16 +00:00
|
|
|
DROP TABLE IF EXISTS ties;
|
|
|
|
CREATE TABLE ties (a Int) ENGINE = Memory;
|
|
|
|
|
2019-08-27 18:11:02 +00:00
|
|
|
-- SET experimental_use_processors=1;
|
|
|
|
|
|
|
|
INSERT INTO ties VALUES (1), (1), (2), (2), (2), (2) (3), (3);
|
2019-08-26 21:00:16 +00:00
|
|
|
|
|
|
|
SELECT a FROM ties order by a limit 1 with ties;
|
|
|
|
SELECT '*';
|
|
|
|
SELECT a FROM ties order by a limit 3 with ties;
|
|
|
|
SELECT '*';
|
|
|
|
SELECT a FROM ties order by a limit 5 with ties;
|
|
|
|
SELECT '*';
|
|
|
|
|
|
|
|
SET max_block_size = 2;
|
2019-08-27 18:11:02 +00:00
|
|
|
SELECT a FROM ties order by a limit 1, 1 with ties;
|
|
|
|
SELECT '*';
|
|
|
|
SELECT a FROM ties order by a limit 1, 2 with ties;
|
2019-08-26 21:00:16 +00:00
|
|
|
SELECT '*';
|
|
|
|
SELECT a FROM ties order by a limit 2 with ties;
|
|
|
|
SELECT '*';
|
2019-08-27 18:11:02 +00:00
|
|
|
SELECT a FROM ties order by a limit 2, 3 with ties;
|
2019-08-26 21:00:16 +00:00
|
|
|
SELECT '*';
|
|
|
|
SELECT a FROM ties order by a limit 4 with ties;
|
|
|
|
SELECT '*';
|
|
|
|
|
|
|
|
SET max_block_size = 3;
|
|
|
|
SELECT a FROM ties order by a limit 1 with ties;
|
|
|
|
SELECT '*';
|
2019-08-27 18:11:02 +00:00
|
|
|
SELECT a FROM ties order by a limit 2, 3 with ties;
|
2019-08-26 21:00:16 +00:00
|
|
|
SELECT '*';
|
2019-08-27 18:11:02 +00:00
|
|
|
SELECT a FROM ties order by a limit 3, 2 with ties;
|
2019-08-26 21:00:16 +00:00
|
|
|
SELECT '*';
|
|
|
|
|
|
|
|
DROP TABLE ties;
|