[MDEV-17182] Move fractional second truncation outside of Field_xxx::store_TIME_with_warn() Created: 2018-09-12 Updated: 2018-09-16 Resolved: 2018-09-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types, Temporal Types |
| Fix Version/s: | 10.4.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
This task is self-sufficient change To make the main
to the caller level. store_TIME_with_warning() will get an already properly truncated value. We'll also add truncating constructors for Time and Datetime. For example, for Datetime, the new constructors will looks approximately like this:
The callers will be changed to truncate the value before passing it to store_TIME_with_warn(). For example, in case of string-to-TIME conversion, the change will look like this:
Later, in the main patch for |