[MDEV-15377] 10.2+ Integer DEFAULT values missing quotes Created: 2018-02-21 Updated: 2018-03-13 Resolved: 2018-03-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation |
| Affects Version/s: | 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Nemanja Stambolic | Assignee: | Ian Gilfillan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
GNU/Linux |
||
| Issue Links: |
|
||||||||||||||||||||
| Sub-Tasks: |
|
||||||||||||||||||||
| Description |
|
MariaDB server 10.0:
MariaDB server 10.2:
I believe this change was intentional - not to quote integers. But both MySQL and MariaDB (prior to 10.2) had been behaving opposite on this - e.g. always quoted DEFAULT values. And now if some app relies on those outputs - it produces bad results across older vs. latest MariaDB server versions. I agree that it is bad to rely on such statements at first place in your app - but in our legacy app that was exactly the case. I doubt there is a flag to get back the old behavior? Note that this https://mariadb.com/kb/en/library/show-create-table/ is totally unrelated - that's for column names quotes, not DEFAULT values. |
| Comments |
| Comment by Elena Stepanova [ 2018-02-21 ] | |||||
|
The change was intentional, introduced by this commit:
There is no flag to revert to the old behavior. Maybe the change deserves mentioning in documentation, assigning to greenman to decide. | |||||
| Comment by Nemanja Stambolic [ 2018-02-22 ] | |||||
|
Thanks for clarification. Kind of expected | |||||
| Comment by Ian Gilfillan [ 2018-03-13 ] | |||||
|
Added in https://mariadb.com/kb/en/library/show-create-table/ and in https://mariadb.com/kb/en/library/incompatibilities-and-feature-differences-between-mariadb-102-and-mysql-57/ | |||||
| Comment by Nemanja Stambolic [ 2018-03-13 ] | |||||
|
Thanks. |