summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-03-28 20:36:36 +0200
committerSergei Golubchik <serg@mariadb.org>2018-03-30 09:45:03 +0200
commit7601331140200b778e31748d994017940fbc1bfd (patch)
tree531cb8814eb5a03aa28ed1f688257a10fa30ec79 /sql
parent7a903784b780ea127d534e510a521b4126c3a655 (diff)
downloadmariadb-git-7601331140200b778e31748d994017940fbc1bfd.tar.gz
bugfix: Item_cache_temporal::get_date() didn't set null_value
this is a 10.3 version of 885edc4fa50
Diffstat (limited to 'sql')
-rw-r--r--sql/item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 30e5725adca..cfd7ea210d1 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -10125,7 +10125,7 @@ bool Item_cache_temporal::get_date(MYSQL_TIME *ltime, ulonglong fuzzydate)
if (!has_value())
{
bzero((char*) ltime,sizeof(*ltime));
- return true;
+ return (null_value= true);
}
unpack_time(value, ltime, mysql_timestamp_type());