Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix results in real ps-protocol:
Starting wth 10.6 it goes via ps protocol so the subselect removed only once on prepare.
- Loading branch information
1 parent
1c926b6
commit 9018704
Showing
4 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- mysql-test/main/select.result 2023-01-31 09:30:58.151377805 +0100 | ||
| +++ mysql-test/main/select.reject 2023-02-01 13:44:11.026958614 +0100 | ||
| @@ -5661,6 +5661,8 @@ | ||
| Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| Note 1249 Select 2 was reduced during optimization | ||
| +Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| +Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1 and (1 or <expr_cache><`test`.`t1`.`a`>((/* select#3 */ select 3 from DUAL where `test`.`t1`.`a` = `test`.`t1`.`a`)) = 3) | ||
| PREPARE stmt FROM 'SELECT * FROM t1 WHERE a = 1 AND | ||
| (3 = 0 OR (SELECT a = 1 OR (SELECT 3 WHERE a = a) = 3))'; | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- mysql-test/main/select_jcl6.result 2023-01-31 09:30:58.151377805 +0100 | ||
| +++ mysql-test/main/select_jcl6.reject 2023-02-01 13:44:10.722958771 +0100 | ||
| @@ -5672,6 +5672,8 @@ | ||
| Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| Note 1249 Select 2 was reduced during optimization | ||
| +Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| +Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1 and (1 or <expr_cache><`test`.`t1`.`a`>((/* select#3 */ select 3 from DUAL where `test`.`t1`.`a` = `test`.`t1`.`a`)) = 3) | ||
| PREPARE stmt FROM 'SELECT * FROM t1 WHERE a = 1 AND | ||
| (3 = 0 OR (SELECT a = 1 OR (SELECT 3 WHERE a = a) = 3))'; | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| --- mysql-test/main/select_pkeycache.result 2023-01-31 09:30:58.151377805 +0100 | ||
| +++ mysql-test/main/select_pkeycache.reject 2023-02-01 13:43:21.742985365 +0100 | ||
| @@ -5661,6 +5661,8 @@ | ||
| Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| Note 1249 Select 2 was reduced during optimization | ||
| +Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| +Note 1276 Field or reference 'test.t1.a' of SELECT #3 was resolved in SELECT #1 | ||
| Note 1003 /* select#1 */ select `test`.`t1`.`a` AS `a` from `test`.`t1` where `test`.`t1`.`a` = 1 and (1 or <expr_cache><`test`.`t1`.`a`>((/* select#3 */ select 3 from DUAL where `test`.`t1`.`a` = `test`.`t1`.`a`)) = 3) | ||
| PREPARE stmt FROM 'SELECT * FROM t1 WHERE a = 1 AND | ||
| (3 = 0 OR (SELECT a = 1 OR (SELECT 3 WHERE a = a) = 3))'; | ||
|
|