[MDEV-8875] Wrong metadata for MAX(CAST(time_column AS DATETIME)) Created: 2015-09-30 Updated: 2015-10-08 Resolved: 2015-09-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Temporal Types |
| Affects Version/s: | 10.0, 10.1 |
| Fix Version/s: | 10.1.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Sprint: | 10.1.8-4 |
| Description |
|
I run "mysql --column-type-info test" and execute this SQL script:
It returns the following metadata:
This is wrong. The expected Type is DATETIME. Note, if I now run:
it correctly creates a DATETIME column:
So the problem is only with the metadata returned. |
| Comments |
| Comment by Alexander Barkov [ 2015-09-30 ] |
|
Also repeatable in MySQL-5.7.8 |