[MDEV-15218] Confusing warning when using datetimes with year>9999 in the binary protocol Created: 2018-02-06 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Temporal Types |
| Affects Version/s: | 10.2, 10.3 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
I run the client test against a running server:
Notice, the first warning said '0000-11-10 12:30:30'. This is misleading. The bound value was actually '10000-11-10 12:30:30'. The relevant code in mysql_client_test.cc is:
It should be fixed to produce a correct warning. |