Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

CLI always uses name as column header #939

Closed
dai-chen opened this issue Dec 15, 2020 · 0 comments
Closed

CLI always uses name as column header #939

dai-chen opened this issue Dec 15, 2020 · 0 comments
Assignees
Labels

Comments

@dai-chen
Copy link
Member

In SQL-CLI, name field in schema in response is used as column header. However, alias is supposed to be used if it's present.

Here is an example in MySQL CLI:

mysql> select max(age) from accounts;
+----------+
| max(age) |
+----------+
|       30 |
+----------+
1 row in set (0.06 sec)

mysql> select max(age) as max from accounts;
+------+
| max  |
+------+
|   30 |
+------+
1 row in set (0.00 sec)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant