diff options
author | unknown <igor@rurik.mysql.com> | 2006-05-12 18:24:38 -0700 |
---|---|---|
committer | unknown <igor@rurik.mysql.com> | 2006-05-12 18:24:38 -0700 |
commit | 7bb4f77828191917e72c6fb5273149e0f9cb21bb (patch) | |
tree | 15df974f9c1b5605a242d002ac193ae1e9556e2e /mysql-test/r/ps_2myisam.result | |
parent | 63f71b5b6e7cf119064395c280a60bd250cb536d (diff) | |
download | mariadb-git-7bb4f77828191917e72c6fb5273149e0f9cb21bb.tar.gz |
Fixed bug #19490. The bug that caused server crash manifested
itself when executing queries referring to a view with GROUP BY
an expression containing non-constant interval.
It happened because Item_date_add_interval::eq neglected the
fact that the method can be applied to an expression of the form
date(col) + interval time_to_sec(col) second
at the time when col could not be evaluated yet.
An attempt to evaluate time_to_sec(col) in this method resulted
in a crash.
mysql-test/r/view.result:
Added a test case for bug #19490.
mysql-test/t/view.test:
Added a test case for bug #19490.
sql/item_timefunc.cc:
Fixed bug #19490. The bug that caused server crash manifested
itself when executing queries referring to a view with GROUP BY
an expression containing non-constant interval.
It happened because Item_date_add_interval::eq neglected the
fact that the method can be applied to an expression of the form
date(col) + interval time_to_sec(col) second
at the time when col could not be evaluated yet.
An attempt to evaluate time_to_sec(col) in this method resulted
in a crash.
The code of Item_date_add_interval::eq was corrected.
Diffstat (limited to 'mysql-test/r/ps_2myisam.result')
0 files changed, 0 insertions, 0 deletions