[MDEV-8284] Comparison of YEAR to '1970' is not consistent Created: 2015-06-08 Updated: 2019-11-19 |
|
| 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 |
|
This script
returns 1 for both SELECT queries. Looks good. Now if I rewrite the two queries slightly:
it start to return 0. The difference originates in this piece of the code:
Notice, it catches FIELD_ITEM, but it does not handle SUBSELECT_ITEM. |