question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grid Column Displayed As Select Column Alias

See original GitHub issue

System 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:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DarthSHOcommented, Oct 28, 2021

System 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

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.

0reactions
iambudicommented, May 30, 2020

@serge-rider That’s perfect. Thanks a lot.

image
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found