summaryrefslogtreecommitdiff
path: root/sql/sql_do.h
diff options
context:
space:
mode:
authorOle John Aske <ole.john.aske@oracle.com>2011-01-12 13:15:22 +0100
committerOle John Aske <ole.john.aske@oracle.com>2011-01-12 13:15:22 +0100
commit003e87fef022c3d83430ca47bc5f8ea78c3353af (patch)
tree7782bdc626c20ac5ddcd58feaae2c037fc921498 /sql/sql_do.h
parentb48abbc5e17042fcdaf9ebb97b57c0332e69747f (diff)
downloadmariadb-git-003e87fef022c3d83430ca47bc5f8ea78c3353af.tar.gz
Fix for bug#58818: Incorrect result for IN/ANY subquery
If the ::single_value_transformer() find an existing HAVING condition it used to do the transformation: 1) HAVING cond -> (HAVING Cond) AND (cond_guard (Item_ref_null_helper(...)) As the AND condition in 1) is Mc'Carty evaluated, the right side of the AND cond should be executed only if the original 'HAVING evaluated' to true. However, as we failed to set 'top_level' for the tranformed HAVING condition, 'abort_on_null' was FALSE after transformation. An UNKNOWN having condition will then not terminate evaluation of the transformed having condition, and we incorrectly continued into the Item_ref_null_helper() part.
Diffstat (limited to 'sql/sql_do.h')
0 files changed, 0 insertions, 0 deletions