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

Function adjust_time_range_with_warn

sql/sql_time.cc:315–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314
315bool
316adjust_time_range_with_warn(THD *thd, MYSQL_TIME *ltime, uint dec)
317{
318 MYSQL_TIME copy= *ltime;
319 ErrConvTime str(&copy);
320 int warnings= 0;
321 if (check_time_range(ltime, dec, &warnings))
322 return true;
323 if (warnings)
324 thd->push_warning_truncated_wrong_value("time", str.ptr());
325 return false;
326}
327
328/*
329 Convert a string to 8-bit representation,

Callers 2

get_dateMethod · 0.85
to_timeMethod · 0.85

Calls 3

check_time_rangeFunction · 0.85
ptrMethod · 0.45

Tested by

no test coverage detected