Skip to content

Columns missing in the result if they have same names #634

Open
@relationaldba

Description

@relationaldba

Describe the bug
When the result set has two or more columns that have the same name and datatype, Antares hides duplicate columns. This can be seen in the attached screenshot.

To Reproduce
Steps to reproduce the behavior:

  1. Connect to PostgreSQL database Antares SQL client
  2. Run the below query (this can be replicated by any query that selects the columns twice)
SELECT 
    class_table.relname,
    class_table.relkind,
    class_depend.relname,
    class_depend.relkind
FROM pg_depend 
    INNER JOIN pg_class AS class_depend
        ON class_depend.oid = pg_depend.objid 
    INNER JOIN pg_class AS class_table
        ON class_table.oid = pg_depend.refobjid;
  1. See the results have missing columns

Expected behavior
Results should show all columns, even if they are duplicates.

Screenshots

image

Application (please complete the following information):

  • App client PostgreSQL
  • App version 0.7.12
  • Installation source: Linux DEB

Environment (please complete the following information):

  • OS name: Ubuntu
  • OS version 23.04
  • DB name PostgreSQL
  • DB version 11, 15 (I did not test on PostgreSQL v12, v13 and v14, but I suspect they are impacted too)

Additional context
NA

Metadata

Metadata

Assignees

Type

No type

Projects

Status

📌 To do

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions