[MDEV-5733] STR_TO_DATE is inconsistent regarding precision Created: 2014-02-25 Updated: 2022-09-08 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.3.12, 5.5.36, 10.0.10 |
| Fix Version/s: | 5.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This SQL script:
returns the following results:
Notice, "a" returns 0 fractional digits, while "b" returns 6 fractional digits. The data type for the both expressions is DATETIME(6). |