[MDEV-18647] Computed column names are limited to ASCII. Bug or feature? Created: 2019-02-19 Updated: 2019-05-15 Resolved: 2019-03-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets, Scripts & Clients |
| Affects Version/s: | 10.3.12 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | VL Incans | Assignee: | Alexander Barkov |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Host: VMWare Mariadb: mysql Ver 15.1 Distrib 10.3.12-MariaDB, for Win64 (AMD64), source revision faf206a848684bc0f87c93a2b47a55063bbccc6c |
||
| Issue Links: |
|
||||||||
| Description |
|
When column in a query is computed by a function and is not given an alias using "AS", the column name in the results is the text of the function invocation, as in-
I have set my installation up (after many hours of trying) to be "unicode clean" top to bottom-
However I note that computed column names seem to ignore the setting of character_set_results as regards column names, these are always transformed to ASCII-
This is not desirable behaviour, because it means the meaning of the results column is ambiguous. However is it expected behaviour? |
| Comments |
| Comment by Alexander Barkov [ 2019-03-12 ] |
|
Hi, which client are you using? Is it command line "mysql.exe", or something else? |
| Comment by VL Incans [ 2019-03-12 ] |
|
I'm using the standard mysql.exe client from the distribution. |
| Comment by Alexander Barkov [ 2019-03-12 ] |
|
mysql.exe is currently not Unicode aware and is limited to the ANSI code page, which is cp850 on a Western machine. Note, there is |
| Comment by VL Incans [ 2019-03-12 ] |
|
I spent quite a bit of time grappling with the setup to get it to work with UTF-8 for data and queries, so I'm running the client in a codepage 65001 (Unicode) cmdtool. An ASCII-only client tool is a problem. I guess I need to vote-up Thanks for the reply. |