1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-27072 Subquery using the ALL keyword on date columns produces a wrong result

This commit is contained in:
Alexander Barkov
2021-11-20 16:11:08 +04:00
parent 81d7adb1e2
commit 7efcc2794d
3 changed files with 22 additions and 1 deletions

View File

@@ -3479,7 +3479,7 @@ bool select_max_min_finder_subselect::cmp_str()
but added for safety
*/
val1= cache->val_str(&buf1);
val2= maxmin->val_str(&buf1);
val2= maxmin->val_str(&buf2);
/* Ignore NULLs for ANY and keep them for ALL subqueries */
if (cache->null_value)