mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-31003: Second execution for ps-protocol
This patch adds for "--ps-protocol" second execution of queries "SELECT". Also in this patch it is added ability to disable/enable (--disable_ps2_protocol/--enable_ps2_protocol) second execution for "--ps-prototocol" in testcases.
This commit is contained in:
@ -8,6 +8,8 @@ eval CREATE TABLE t1(a $typec);
|
||||
ALTER TABLE t1 ADD KEY(a(10));
|
||||
SHOW CREATE TABLE t1;
|
||||
|
||||
--disable_ps2_protocol
|
||||
|
||||
--echo # Make sure column was actually compressed
|
||||
INSERT INTO t1 VALUES(REPEAT('a', 1000));
|
||||
SELECT LEFT(a, 10), LENGTH(a) FROM t1;
|
||||
@ -94,6 +96,8 @@ SELECT * FROM t1 ORDER BY a;
|
||||
SELECT a+1 FROM t1 ORDER BY 1;
|
||||
SELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME IN('Column_compressions', 'Column_decompressions');
|
||||
|
||||
--enable_ps2_protocol
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user