diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-03-12 20:13:55 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-03-14 12:40:01 +0100 |
commit | 885edc4fa50546304c1596e4a477ae75aa3973e0 (patch) | |
tree | 4043a422efb8103bbdd13210a2c4babbe03080fa /sql/item.cc | |
parent | 622115ee07f8e7878389d22b2d624c13a2eda7da (diff) | |
download | mariadb-git-885edc4fa50546304c1596e4a477ae75aa3973e0.tar.gz |
bugfix: Item_cache_temporal::get_date() didn't set null_value
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc index 05e2bc43aed..09ae50fcc59 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -9799,7 +9799,7 @@ bool Item_cache_temporal::get_date(MYSQL_TIME *ltime, ulonglong fuzzydate) if (!has_value()) { bzero((char*) ltime,sizeof(*ltime)); - return 1; + return null_value= true; } unpack_time(value, ltime); |