diff options
author | Alexander Barkov <bar@mariadb.com> | 2019-08-05 14:41:17 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2019-08-05 14:41:17 +0400 |
commit | c99f9766b11bda7eb15d6875f2f1e64c2d01b461 (patch) | |
tree | c9fadd3d0e98b6d3fd9bdb0696c3c2440779373c /sql/item.cc | |
parent | e244652831932ab9deed83d38dd3f6f1958b91ef (diff) | |
download | mariadb-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.cc | 2 |
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); } |