[MDEV-13244] `DEFAULT` & `COMMENT` doens't work sometimes. Created: 2017-07-05 Updated: 2021-02-12 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Platform Windows |
| Affects Version/s: | 10.2.6 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | PHP.Developer | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Environment: |
Windows 7 x64 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
I was working on Windows 7 and developing a Laravel project with MariaDB 10.2.6.
The columns `password` and `message` are both defined with default value and comment. However, column `message` is not what defined as the above SQL lines. I tested this carefully on my windows, but I was not able to get access to the Internet on that machine. |
| Comments |
| Comment by Elena Stepanova [ 2017-07-05 ] | ||||||||||||||||
|
Could you please explain what is wrong, exactly? What does it mean, "column `message` is not what defined as the above SQL lines"? | ||||||||||||||||
| Comment by PHP.Developer [ 2017-07-06 ] | ||||||||||||||||
|
I am sorry for not having described it clearly. | ||||||||||||||||
| Comment by Elena Stepanova [ 2017-07-06 ] | ||||||||||||||||
|
Please paste the unabridged output of
from your MySQL client. | ||||||||||||||||
| Comment by PHP.Developer [ 2017-07-06 ] | ||||||||||||||||
|
This is the definition from heidisql: This is the table, column 'message' with missing default value and missing comment. This is the output when executed from the command window. No error is reported. | ||||||||||||||||
| Comment by Alice Sherepa [ 2017-07-07 ] | ||||||||||||||||
|
Thanks for the report. When column type is int (or bigint, tinyint, decimal, float, double) and column has default value (and this value <>null) and a comment simultaneously, then heidisql substitude column definition to DEFAULT ''.
| ||||||||||||||||
| Comment by Sergei Golubchik [ 2017-07-07 ] | ||||||||||||||||
|
This is HeidiSQL bug.
Apparently, HeidiSQL expects '5', default value in quotes. That's why it works for strings and stopped working for numbers. | ||||||||||||||||
| Comment by Elena Stepanova [ 2017-07-09 ] | ||||||||||||||||
|
As discussed, we need to wait for the bugfix in HeidiSQL and then update the version that we package in MSIs. Thus, I'm re-opening the report, it will stay assigned to alice who'll monitor the upstream bugfix, and when it's ready, will reassign it to wlad for proper packaging. |