summaryrefslogtreecommitdiff
path: root/sql/compat56.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/compat56.cc')
-rw-r--r--sql/compat56.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/compat56.cc b/sql/compat56.cc
index 704d1db9a98..b2e67a50491 100644
--- a/sql/compat56.cc
+++ b/sql/compat56.cc
@@ -252,6 +252,9 @@ void TIME_from_longlong_datetime_packed(MYSQL_TIME *ltime, longlong tmp)
{
longlong ymd, hms;
longlong ymdhms, ym;
+
+ DBUG_ASSERT(tmp != LONGLONG_MIN);
+
if ((ltime->neg= (tmp < 0)))
tmp= -tmp;