[MDEV-17198] Wrong order when selecting in INFORMATION_SCHEMA.COLUMNS for fields with large ENUMs Created: 2018-09-14 Updated: 2018-09-25 Resolved: 2018-09-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | N/A |
| Affects Version/s: | 5.5.56 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Sébastien Zinsius | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Red Hat Entreprise Linux Workstation 7.5 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
For each of my databases the following query is used to get and store a MD5 information identifying the consistency of the database format (more than 150 tables):
This worked for years on RHEL5/6 with MySQL. The result of the query is different following the name of the database.
When displaying the result of the inner concatenation we can notice that the order to the concatenated strings is not correct when the name of the database contains an underscore:
(see also attached log files) A flavor of this can already be noticed by performing a simple SELECT query on the COLUMNS table:
The type of the field which causes problem is an ENUM with a high number of elements:
When reducing the number of elements of the ENUM (to 2) the problem does no more appear. It can also be noticed that the results are different following the user connecting to the database server:
The problem seems similar to |
| Comments |
| Comment by Alice Sherepa [ 2018-09-24 ] | |
|
Please explain why you consider it is a bug.
| |
| Comment by Sébastien Zinsius [ 2018-09-25 ] | |
|
Dear Alice, Thanks for your answer. Thanks again! Best regards, |