summaryrefslogtreecommitdiff
path: root/sql/time.cc
diff options
context:
space:
mode:
authorkaa@polly.local <>2006-10-12 12:36:13 +0400
committerkaa@polly.local <>2006-10-12 12:36:13 +0400
commita82e5d4a558eb4a56a923be663569aa09129b92f (patch)
tree4763f87f5b35217d4afe850ab88ba2dfc0974778 /sql/time.cc
parenta9c3db68cd7960ef830cc39bf9b744e73059358e (diff)
parent105434f86549343190df09cff2c86132bd295766 (diff)
downloadmariadb-git-a82e5d4a558eb4a56a923be663569aa09129b92f.tar.gz
Merge polly.local:/tmp/maint/bug11655/my51-bug11655
into polly.local:/home/kaa/src/maint/m51-new-maint--07OGx
Diffstat (limited to 'sql/time.cc')
-rw-r--r--sql/time.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/time.cc b/sql/time.cc
index 467dbc684a5..25a1995dd01 100644
--- a/sql/time.cc
+++ b/sql/time.cc
@@ -289,9 +289,9 @@ my_time_t TIME_to_timestamp(THD *thd, const TIME *t, my_bool *in_dst_time_gap)
bool
str_to_time_with_warn(const char *str, uint length, TIME *l_time)
{
- int was_cut;
- bool ret_val= str_to_time(str, length, l_time, &was_cut);
- if (was_cut)
+ int warning;
+ bool ret_val= str_to_time(str, length, l_time, &warning);
+ if (ret_val || warning)
make_truncated_value_warning(current_thd, str, length,
MYSQL_TIMESTAMP_TIME, NullS);
return ret_val;