Check and adjust a time value with a warning. @param ltime Time variable. @param decimals Precision. @retval True on error, false of success. */
| 64 | @retval True on error, false of success. |
| 65 | */ |
| 66 | static void |
| 67 | adjust_time_range_with_warn(MYSQL_TIME *ltime, uint8 decimals) |
| 68 | { |
| 69 | /* Fatally bad value should not come here */ |
| 70 | if (check_time_range_quick(ltime)) |
| 71 | { |
| 72 | int warning= 0; |
| 73 | make_truncated_value_warning(ErrConvString(ltime, decimals), |
| 74 | MYSQL_TIMESTAMP_TIME); |
| 75 | adjust_time_range(ltime, &warning); |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | |
| 80 | /* |
nothing calls this directly
no test coverage detected