Skip to content

SQLSpecialColumns ODBC API does not return Columns part of UNIQUE INDEX on YugaByteDB #79

@raddakal

Description

@raddakal

Hello,

Its a very common use case where an explicit primary key is not defined on the table but instead rely on the unique index. The ODBC driver is expected to return the columns that are of the UNIQUE index when SQLSpecialColumns ODBCAPI is called.

SQLSpecialColumns.zip

Environment details:

OS:
OEL8 Linux 64bit (el8uek.x86_64)

Database:
Yugabyte DB
PostgreSQL
Version 11.02.0001 PostgreSQL 11.2-YB-2024.1.1.0-b0
ODBC Version 03.52.0000

Driver:
Driver Information:
psqlodbcw.so
Version 17.00.0002
ODBC Version 03.51.

I have attached SQLSpecialColumns.zip which contains the standalone ODBC program along with the detailed steps to reproduce the issue.

Our major release is blocked because of this issue.
A quick resolution/workaround would be highly appreciated.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions