From 901870440bbd80350f5a758912ebd596474fedad Mon Sep 17 00:00:00 2001 From: Oleksandr Byelkin Date: Wed, 1 Feb 2023 14:05:00 +0100 Subject: Fix results in real ps-protocol: Starting wth 10.6 it goes via ps protocol so the subselect removed only once on prepare. --- mysql-test/main/select.test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mysql-test/main/select.test') diff --git a/mysql-test/main/select.test b/mysql-test/main/select.test index 5c18c6547e7..332b5a36aea 100644 --- a/mysql-test/main/select.test +++ b/mysql-test/main/select.test @@ -3,6 +3,7 @@ # --source include/no_valgrind_without_big.inc +--source include/protocol.inc # # Simple select test @@ -4758,9 +4759,11 @@ INSERT INTO t1 VALUES (1),(2),(3); SELECT * FROM t1 WHERE a = 1 AND (3 = 0 OR (SELECT a = 1 OR (SELECT 3 WHERE a = a) = 3)); +--enable_prepare_warnings EXPLAIN EXTENDED SELECT * FROM t1 WHERE a = 1 AND (3 = 0 OR (SELECT a = 1 OR (SELECT 3 WHERE a = a) = 3)); +--disable_prepare_warnings PREPARE stmt FROM 'SELECT * FROM t1 WHERE a = 1 AND (3 = 0 OR (SELECT a = 1 OR (SELECT 3 WHERE a = a) = 3))'; -- cgit v1.2.1