mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Merge polly.local:/tmp/maint/bug11655/my41-bug11655
into polly.local:/tmp/maint/bug11655/my50-bug11655 sql/time.cc: Auto merged include/my_time.h: Manually merged mysql-test/r/func_sapdb.result: Manually merged mysql-test/r/func_time.result: Manually merged mysql-test/t/func_time.test: Manually merged sql-common/my_time.c: Manually merged sql/field.cc: Manually merged sql/item_timefunc.cc: Manually merged
This commit is contained in:
@@ -254,9 +254,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;
|
||||
|
||||
Reference in New Issue
Block a user