diff options
author | unknown <timour@askmonty.org> | 2011-02-10 22:53:30 +0200 |
---|---|---|
committer | unknown <timour@askmonty.org> | 2011-02-10 22:53:30 +0200 |
commit | bb39eb0eda5c83e1f389fe0ffaa8ad9d7de664d1 (patch) | |
tree | d29022101eff8f757b101f9e40f8305a1ae44744 /sql/item_sum.cc | |
parent | 15da3d8b181d170c1b0682432154e5ca180be369 (diff) | |
download | mariadb-git-bb39eb0eda5c83e1f389fe0ffaa8ad9d7de664d1.tar.gz |
Fix LP BUG#714999
Analysis:
The crash in EXPLAIN resulted from an attempt to print the
name of the internal temporary table created to compute
distinct for the innermost subquery of the test case.
Such tables do not have a corresponding TABLE_LIST (table
reference), hence the crash. The reason for this was that
the subquery was executed as part of constant condition
evaluation before EXPLAIN attempts to print the table name.
During the subquery execution, the subquery JOIN_TAB and
its table are substituted by a temporary table in
make_simple_join.
Solution:
Similar to the analogous case for other Items than the
IS NULL function, do not evaluate expensive constant
conditions.
Diffstat (limited to 'sql/item_sum.cc')
0 files changed, 0 insertions, 0 deletions