[MDEV-14459] ORDER BY on "GENERATED ALWAYS" virtual column is ignored Created: 2017-11-21 Updated: 2017-12-31 Resolved: 2017-12-31 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Virtual Columns |
| Affects Version/s: | 10.2.10 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Craig Edwards | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
Linux dedi2.comech.co.uk 3.10.0-327.18.2.el7.x86_64 #1 SMP Thu May 12 11:03:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux |
||
| Description |
|
I have created a users table, which contains a "generated always" virtual column called "full_name". This virtual column is calculated from two varchar fields, first_name and last_name using CONCAT.
When i try and do an ORDER BY on the full_name column, either ascending or descending, the ORDER BY is silently ignored. This occurs in my own code and also in phpMyAdmin 4.7.3 under PHP 5.6.30. |
| Comments |
| Comment by Elena Stepanova [ 2017-12-02 ] |
|
Please connect to the server with the command-line client (mysql) and run the query from there. If it still returns the result in a wrong order, please paste the output. You can obfuscate the result any way you want, as long as it's clearly seen that the order is wrong; and also attach the cnf file(s). |
| Comment by Elena Stepanova [ 2017-12-31 ] |
|
If you have further information on the issue, please comment and the report will be re-opened. |