Error codes returned by SQLGetDiagRec - Mailing list pgsql-odbc

From Abhishek Kumar
Subject Error codes returned by SQLGetDiagRec
Date
Msg-id CAAyULEDOnUZpqKtKdY38H0dixmEt9eAC5bbmTvdzKOBA-uHqtA@mail.gmail.com
Whole thread Raw
Responses Re: Error codes returned by SQLGetDiagRec
List pgsql-odbc
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: Dave Cramer
Date:
Subject: Re: Stored procedure support for PSQLODBC
Next
From: Dave Cramer
Date:
Subject: Re: Error codes returned by SQLGetDiagRec