~mysql/mysql-server/mysql-5.1-bugteam

Viewing all changes in revision 3531.

  • Committer: Sergey Glukhov
  • Date: 2010-12-21 11:34:11 UTC
  • Revision ID: sergey.glukhov@oracle.com-20101221113411-aggnvlrbao9o1e3o
Bug#58030 crash in Item_func_geometry_from_text::val_str
Item_sum_max/Item_sum_min incorrectly set null_value flag and
attempt to get result in parent functions leads to crash.
This happens due to double evaluation of the function argumet.
First evaluation happens in the comparator and second one
happens in Item_cache::cache_value().
The fix is to introduce new Item_cache object which
holds result of the argument and use this cached value
as an argument of the comparator.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: