summaryrefslogtreecommitdiff
path: root/cmd-line-utils
diff options
context:
space:
mode:
authorAlexander Barkov <alexander.barkov@oracle.com>2012-01-12 13:02:51 +0400
committerAlexander Barkov <alexander.barkov@oracle.com>2012-01-12 13:02:51 +0400
commit1522923949a9ea2a7379f9369b398870a711f79a (patch)
treee730d8a3f92a6758729971a6df7bf357592611fc /cmd-line-utils
parent5e3a4547551c1f54382112e43026220f4fc5da17 (diff)
downloadmariadb-git-1522923949a9ea2a7379f9369b398870a711f79a.tar.gz
BUG#13354387 - CRASH IN IN MY_DECIMAL::OPERATOR FOR VIEW AND FUNCTION UNIX_TIME
Fixing the 5.5 part (the 5.6 part will go in a separate commit soon). Problem: Item_direct_ref::get_date() incorrectly calculated its "null_value", which made UNIX_TIMESTAMP(view_column) incorrectly return NULL for a NOT NULL view_column. Fix: Make Item_direct_ref::get_date() calculate null_value in the similar way with the other methods (val_real,val_str,val_int,val_decimal): copy null_value from the referenced Item. modified: mysql-test/r/func_time.result mysql-test/t/func_time.test sql/item.cc
Diffstat (limited to 'cmd-line-utils')
0 files changed, 0 insertions, 0 deletions