summaryrefslogtreecommitdiff
path: root/sql/time.cc
diff options
context:
space:
mode:
authorholyfoot/hf@mysql.com/hfmain.(none) <>2007-04-29 18:46:06 +0500
committerholyfoot/hf@mysql.com/hfmain.(none) <>2007-04-29 18:46:06 +0500
commit35ca5a4f87816ea3bb43120b568fd53078dcf80e (patch)
tree305dac52043ee4eb275a83ea81b31c318a9e874c /sql/time.cc
parent2fcebef31fbde737d9a7154b842bbd2c5efbaa92 (diff)
downloadmariadb-git-35ca5a4f87816ea3bb43120b568fd53078dcf80e.tar.gz
merging fix
Diffstat (limited to 'sql/time.cc')
-rw-r--r--sql/time.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/time.cc b/sql/time.cc
index 249de3b879b..c552d085f5e 100644
--- a/sql/time.cc
+++ b/sql/time.cc
@@ -860,8 +860,9 @@ bool date_add_interval(MYSQL_TIME *ltime, interval_type int_type, INTERVAL inter
}
break;
default:
- return 1;
+ goto null_date;
}
+
return 0; // Ok
invalid_date:
@@ -869,6 +870,7 @@ invalid_date:
ER_DATETIME_FUNCTION_OVERFLOW,
ER(ER_DATETIME_FUNCTION_OVERFLOW),
"datetime");
+null_date:
return 1;
}