MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / str_to_time_with_warn

Function str_to_time_with_warn

sql/sql_time.cc:616–624  ·  view source on GitHub ↗

Convert a time string to a MYSQL_TIME struct and produce a warning if string was cut during conversion. NOTE See str_to_time() for more info. */

Source from the content-addressed store, hash-verified

614 See str_to_time() for more info.
615*/
616bool
617str_to_time_with_warn(String *str, MYSQL_TIME *l_time)
618{
619 MYSQL_TIME_STATUS status;
620 bool ret_val= str_to_time(str, l_time, 0, &status);
621 if (ret_val || status.warnings)
622 make_truncated_value_warning(ErrConvString(str), MYSQL_TIMESTAMP_TIME);
623 return ret_val;
624}
625
626
627/*

Callers

nothing calls this directly

Calls 3

ErrConvStringClass · 0.85
str_to_timeFunction · 0.70

Tested by

no test coverage detected