[MDEV-31516] Cursor protocol gives incorrect result with sql_mode='ALLOW_INVALID_DATES' Created: 2023-06-21 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.9, 10.10, 11.0, 11.1, 11.2 |
| Fix Version/s: | 10.4, 10.5, 10.6, 11.0, 11.1, 11.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Lena Startseva | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Cursor protocol gives incorrect result with sql_mode='ALLOW_INVALID_DATES'- invalid dates are replaced with "0000-00-00" , but it is important for repeating that after inserting invalid date to set sql_mode='ansi,traditional' and insert correct date: Testcase:
Expected value:
Actual value:
|