[MDEV-8862] Wrong field type for MAX(COALESCE(datetime_column)) Created: 2015-09-28 Updated: 2017-11-07 Resolved: 2017-11-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Temporal Types |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | upstream | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
If I start mysql --column-type-info and run this script:
it returns a correct result set:
but the metadata is wrong:
Notice, metadata for MAX(COALESCE(a)) says it's a VAR_STRING column. If I change the column data type from DATETIME to TIME:
it also returns VAR_STRING for the second column. |