1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Make tests work with --view-protocol

This commit is contained in:
Sergei Petrunia
2022-12-16 13:33:05 +03:00
parent 1529881595
commit e4fbec1463
7 changed files with 276 additions and 188 deletions

View File

@ -981,6 +981,8 @@ ANALYZE TABLE t1_part,t2;
EXPLAIN SELECT a, MAX(b) FROM t1_part WHERE a IN (10,100) GROUP BY a;
EXPLAIN SELECT a, MAX(b) FROM t2 WHERE a IN (10,100) GROUP BY a;
# view protocol will cause changed table counters
--disable_view_protocol
FLUSH status;
SELECT a, MAX(b) FROM t1_part WHERE a IN (10, 100) GROUP BY a;
SHOW status LIKE 'handler_read%';
@ -989,6 +991,7 @@ FLUSH status;
SELECT a, MAX(b) FROM t2 WHERE a IN (10, 100) GROUP BY a;
SHOW status LIKE 'handler_read%';
--enable_view_protocol
insert into t2 select 100,seq from seq_1_to_100;
EXPLAIN SELECT a, MAX(b) FROM t2 WHERE a IN (10,100) GROUP BY a;