summaryrefslogtreecommitdiff
path: root/include/myisam.h
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-08-20 11:52:16 +0300
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-08-20 11:52:16 +0300
commit3b36a677ba839448a25b4e4f90a1bf1caf99bb76 (patch)
tree5c6f8d040f627809b8d80d594254f9d0fe896231 /include/myisam.h
parent62aa8943b8b0603fe4a01a4248f5fa89a133cf9f (diff)
downloadmariadb-git-3b36a677ba839448a25b4e4f90a1bf1caf99bb76.tar.gz
Bug #55826: create table .. select crashes with when
KILL_BAD_DATA is returned Two problems discovered with the LEAST()/GREATEST() functions: 1. The check for a null value should happen even after the second call to val_str() in the args. This is important because two subsequent calls to the same Item::val_str() may yield different results. Fixed by checking for NULL value before dereferencing the string result. 2. While looping over the arguments and evaluating them the loop should stop if there was an error evaluating so far or the statement was killed. Fixed by checking for error and bailing out.
Diffstat (limited to 'include/myisam.h')
0 files changed, 0 insertions, 0 deletions