| 199 | |
| 200 | |
| 201 | inline 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 | |
| 218 | inline double TIME_microseconds(const MYSQL_TIME *ltime) |
no test coverage detected