[MDEV-17335] COALESCE() respects NO_ZERO_DATE, NO_ZERO_IN_DATE but ignores unset ALLOW_INVALID_DATES Created: 2018-10-01 Updated: 2019-11-18 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data types, Temporal Types |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Epic Link: | Data type cleanups | ||||||||
| Description |
|
Versions 10.0, 10.1, 10.2, 10.3, 10.4 return these results:
COALESCE() respects NO_ZERO_DATE and NO_ZERO_IN_DATE, but ignores unset ALLOW_INVALID_DATE. (Note, table fields ignore sql_mode. But this is by design, it's hard to fix, and it's out of scope of this MDEV) 5.5 returns these results
So in 5.5 COALESCE() ignores sql_mode completely. |