[MDEV-5971] Asymmetry between CAST(DATE'2001-00-00') to INT and TO CHAR in prepared statements Created: 2014-03-28 Updated: 2014-03-31 Resolved: 2014-03-31 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.9 |
| Fix Version/s: | 10.0.10 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
returns
If I change CAST type from SIGNED to CHAR, the behaviour changes:
returns
It should be fixed to follow the same rules: Also, notice the second problem: wrong table alignment in the last results. If I run "mysql --column-type-info" and run the last script that displays a wrong
The NOT_NULL flag is not correct. Alternatively, this script also demonstrates the problem with a wrong NOT_NULL flag:
displays:
Null=NO is wrong. |