Grid Column Displayed As Select Column Alias
See original GitHub issueSystem information:
- MacOS Catalina
- DBeaver 6.2.3 Community
Connection specification:
- MySQL v 8.0.18 ~ Connection Driver MySQL 8+
Describe your question:
When aliasing column the result grid column does not display the alias name, but original column name so it’s confusing when there are a lot of same column name select from different join table. Is there any config to set the grid column as aliased?
SELECT
-- <# this works
DATE_FORMAT(insert_date, ‘%d/%m/%Y’) AS so_date,
-- # It should be displayed as product_id but the grid show product_map_id
product_map_id AS product_id
FROM table_x
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Using column aliases in Sales Order Grid field - Stack Overflow
I'm doing this by overriding Mage_Adminhtml_Block_Sales_Order_Grid::setCollection(...) to join the table with sales/order_address . public ...
Read more >Master Detail with Column Alias | phpGrid - PHP Datagrid
This great phpGrid example shows how to work with master detail grids with column name alias, especially during edit. using sample database.
Read more >Displaying Member Names and Their Aliases in the Grid
From the Smart View ribbon, select Options, and then Member Options in the left panel. · Under General, for Member Name Display, select...
Read more >Create Column Aliases - Visual Database Tools
You can create aliases for column names to make it easier to work with column names, calculations, and summary values.
Read more >Alias columns don't show alias name in dbVis 9.1.5
My query when executed in 8.0.9 shows aliases in the results grid...in 9.1.5 the columns retain their actual column name. select a.claim_id, e.name...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just started experiencing this today after using the same version of DBeaver for months. Some existing scripts still work, but I cannot get new scripts to use “As”.
Windows 10 Dbeaver 21.2.0.202109061154 MariaDB 10.5
This is really odd. Checking the MariaDB log I can clearly see it being passed to the server.
Example
SELECT c.CUST as customerID FROM CUSTOMER c
Column shows as CUST not customerID. This just started happening. No updates to anything.
@serge-rider That’s perfect. Thanks a lot.