[MDEV-23519] Protocol packet - "Original Name" info is showing alias name, instead of original name of the column Created: 2020-08-20 Updated: 2023-03-10 Resolved: 2021-09-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.4.13 |
| Fix Version/s: | 10.4.22, 10.5.13, 10.6.5 |
| Type: | Bug | Priority: | Critical |
| Reporter: | suresh ramagiri | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | None | ||
| Attachments: |
|
||||||||||||
| Issue Links: |
|
||||||||||||
| Description |
|
One of the customers, noted that the MySQL protocol packet captured at client 10.4 is having "Original name" parameter using the alias name instead of the original column name which you can see 10.2 is showing up properly. |
| Comments |
| Comment by Oleksandr Byelkin [ 2021-03-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
The patch is OK (even part of it is already in the sources) biut it lack test case. Without the test case we can not be sure that 1) it really fix the problem 2) noone breack it again in the future. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2021-03-10 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Could a test case be added in our standard test suite (mysql-test/) with
or client test in tests/mysql_client_test.c or just to list here the sequence of SQLs (CREATE TABLE, INSERT, SELECT) to see the problem and I will make the test case. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2021-06-08 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
this would seems a dupplicate of https://jira.mariadb.org/browse/MDEV-23341 | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2021-09-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Could someone please answer the following questions (which is not clear in the description above and should really be part of the description):
| |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2021-09-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Just to answer the first item, this is a server issue (see duplicated issue | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2021-09-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
I recall that it is user fix and all should be checked, so I took the test case and compiled it with current 10.4, it passes. in other words it passes without the fix. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2021-09-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
I checked also 10.4.13 (built from tag) the same - it pass. (I am still trying to fix test suite) | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2021-09-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
It shoud be prepered statements protocol I think | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2021-09-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
I also checked prepare/execute with changed test from the fix, it pass on unfixed 10.4:
| |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2021-09-02 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
So it needs a way to repeat the bugs (as well as I checked test case from the fix, also changed for using PS test case, both pass without fixes on 10.4. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2021-09-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
The bug appeared in 10.4. Here is a test case: --echo # In 10.3 the meta data is: In 10.4 and 10.5 it is: Difference "a a1" compared to "a1 a1" Now trying to find what causes it | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Michael Widenius [ 2021-09-13 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
The reason for the bug was a refactoring of temporary table field creation that was done in 10.4 |