summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.cc
diff options
context:
space:
mode:
authorAlexander Nozdrin <alexander.nozdrin@oracle.com>2010-11-25 13:46:18 +0300
committerAlexander Nozdrin <alexander.nozdrin@oracle.com>2010-11-25 13:46:18 +0300
commitbb8361b60d9415e151f47c82ebb82f3c03070cf4 (patch)
tree20f90a9011c7827c6a21f0f5a24351a42d65f903 /sql/item_timefunc.cc
parent9836927774a703f56425b35261a28e05b347a074 (diff)
parent7a8515cc200bc867bb1d0f24bc8b51ea237ef8dd (diff)
downloadmariadb-git-bb8361b60d9415e151f47c82ebb82f3c03070cf4.tar.gz
Auto-merge from mysql-5.5.7-rc-release.
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r--sql/item_timefunc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc
index 91402ae1246..73b8b6047e0 100644
--- a/sql/item_timefunc.cc
+++ b/sql/item_timefunc.cc
@@ -3465,7 +3465,7 @@ bool Item_func_str_to_date::get_date(MYSQL_TIME *ltime, uint fuzzy_date)
return 0;
null_date:
- if (fuzzy_date & TIME_NO_ZERO_DATE)
+ if (val && (fuzzy_date & TIME_NO_ZERO_DATE))
{
char buff[128];
strmake(buff, val->ptr(), min(val->length(), sizeof(buff)-1));