[MDEV-23341] shadowed field wrong column name metadata Created: 2020-07-30 Updated: 2021-10-07 Resolved: 2021-09-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Critical |
| Reporter: | Diego Dupin | Assignee: | Diego Dupin |
| Resolution: | Duplicate | Votes: | 4 |
| Labels: | CONNECTOR_RELATED | ||
| Attachments: |
|
||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
Some shadowed field return alias name in place of column name. (This is only since 10.4) To reproduced :
same code without order by work without issue. metadata is wrong :
with 10.3, no problem, original_id is returned as column name :
|
| Comments |
| Comment by Oleksandr Byelkin [ 2021-01-19 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Shouls it be problem for CC? (atually I can make test case with it). I will check at once... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2021-01-19 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This test suite do not have problems with --ps-protocol so how I can repeat the problem in other ways? | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Chris Calender (Inactive) [ 2021-01-30 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I can reproduce it using Diego's example above and the latest Connector/J 2.7.2. Here is my code, test23341.java:
You can see it works in MariaDB 10.2:
You can see it works in MariaDB 10.3:
And you can see it fails in MariaDB 10.4:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2021-04-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I can not put java in our test suite. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2021-09-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Here is the test to reproduce error : MDEV-23519.patch
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dmitry Shulga [ 2021-09-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This bug report is not reproduced against the latest MariaDB Server 10.4.22 (I pulled the latest changes from the branch 10.4) Both test case provided in the file version.c and in the file Please re-check whether the bug report is still reproduced in Java and elaborate the C test if it does. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2021-09-28 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
tested with 10.4 protocol exchanges are now ok (metadata alias and original name are now accurate). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ralf Gebhardt [ 2021-09-29 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Bug was fixed with |