MCPcopy Create free account
hub / github.com/MariaDB/server / check_date_with_warn

Function check_date_with_warn

sql/sql_time.cc:299–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

297
298
299bool
300check_date_with_warn(THD *thd, const MYSQL_TIME *ltime,
301 date_conv_mode_t fuzzydate, timestamp_type ts_type)
302{
303 int unused;
304 if (check_date(ltime, fuzzydate, &unused))
305 {
306 ErrConvTime str(ltime);
307 make_truncated_value_warning(thd, Sql_condition::WARN_LEVEL_WARN,
308 &str, ts_type, nullptr, nullptr, nullptr);
309 return true;
310 }
311 return false;
312}
313
314
315bool

Callers

nothing calls this directly

Calls 2

check_dateFunction · 0.70

Tested by

no test coverage detected