summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-08-05 14:41:17 +0400
committerAlexander Barkov <bar@mariadb.com>2019-08-05 14:41:17 +0400
commitc99f9766b11bda7eb15d6875f2f1e64c2d01b461 (patch)
treec9fadd3d0e98b6d3fd9bdb0696c3c2440779373c /sql/item.cc
parente244652831932ab9deed83d38dd3f6f1958b91ef (diff)
downloadmariadb-git-c99f9766b11bda7eb15d6875f2f1e64c2d01b461.tar.gz
MDEV-19166 Assertion `!is_zero_datetime()' failed in Timestamp_or_zero_datetime::tv
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 4bcaaa8aaf9..eaec0a2a737 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -9909,7 +9909,7 @@ Datetime Item_cache_timestamp::to_datetime(THD *thd)
null_value= true;
return Datetime();
}
- return Datetime(thd, Timestamp_or_zero_datetime(m_native).tv());
+ return m_native.to_datetime(thd);
}