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

Function TIME_to_ulonglong_round

sql/sql_time.h:201–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199
200
201inline ulonglong TIME_to_ulonglong_round(const MYSQL_TIME *ltime)
202{
203 switch (ltime->time_type)
204 {
205 case MYSQL_TIMESTAMP_TIME:
206 return TIME_to_ulonglong_time_round(ltime);
207 case MYSQL_TIMESTAMP_DATETIME:
208 return TIME_to_ulonglong_datetime_round(ltime);
209 case MYSQL_TIMESTAMP_DATE:
210 return TIME_to_ulonglong_date(ltime);
211 default:
212 DBUG_ASSERT(0);
213 return 0;
214 }
215}
216
217
218inline double TIME_microseconds(const MYSQL_TIME *ltime)

Callers 1

val_intMethod · 0.85

Calls 3

TIME_to_ulonglong_dateFunction · 0.85

Tested by

no test coverage detected