summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-08-13 16:05:46 +0300
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2010-08-13 16:05:46 +0300
commitb6e3adf10f603d0ec670bc21c3c67a975d6717f7 (patch)
treecee46d5fbf50847d147c9723e7461a8f9cd4eab3 /sql/sql_select.cc
parenta89224ba85d201b171add0981ef11fc62c6ce7c7 (diff)
downloadmariadb-git-b6e3adf10f603d0ec670bc21c3c67a975d6717f7.tar.gz
Bug #55565: debug assertion when ordering by expressions with user
variable assignments The assert() that is firing is checking if expressions that can't be null return a NULL when evaluated. MAKEDATE() function can return NULL if the second argument is less then or equal to 0. Thus its nullability depends not only on the nullability of its arguments but also on their values. Fixed by (overoptimistically) setting MAKEDATE() to be nullable despite the nullability of its arguments. Test added. Had to update one test result to reflect the metadata change.
Diffstat (limited to 'sql/sql_select.cc')
0 files changed, 0 insertions, 0 deletions