Re: Error codes returned by SQLGetDiagRec - Mailing list pgsql-odbc

From Dave Cramer
Subject Re: Error codes returned by SQLGetDiagRec
Date
Msg-id CADK3HHJ3DN3rQKsN6r9+7XNNJ8NRsLOOAUmWMTqSTjGrS8=f8Q@mail.gmail.com
Whole thread Raw
In response to Error codes returned by SQLGetDiagRec  (Abhishek Kumar <abhishek.aak0@gmail.com>)
List pgsql-odbc
Hi Abhishek,

Can you please file this issue on github https://github.com/postgresql-interfaces/psqlodbc/issues

Dave Cramer
www.postgres.rocks


On Fri, 27 Sept 2024 at 11:32, Abhishek Kumar <abhishek.aak0@gmail.com> wrote:
Hi,

The native error code returned by SQLGetDiagRec seems to be very generic. Example : It returns the value 1 in case of "duplicate key error". 
Do we have an exhaustive list of native error code with the corresponding error for PostgreSQL ODBC driver ? ( i am assuming a one to one mapping of error code to an error

Please advise me on the same. I need to do some handling depending on the error code i get.

Regards,
Abhishek Kumar

pgsql-odbc by date:

Previous
From: Abhishek Kumar
Date:
Subject: Error codes returned by SQLGetDiagRec
Next
From: Chandrababu Kilari
Date:
Subject: Required Information on installing psql odbc