Re: Error codes returned by SQLGetDiagRec

From: Dave Cramer <davecramer(at)postgres(dot)rocks>
To: Abhishek Kumar <abhishek(dot)aak0(at)gmail(dot)com>
Cc: pgsql-odbc(at)lists(dot)postgresql(dot)org
Subject: Re: Error codes returned by SQLGetDiagRec
Date: 2024-09-27 15:44:36
Message-ID: CADK3HHJ3DN3rQKsN6r9+7XNNJ8NRsLOOAUmWMTqSTjGrS8=f8Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)aak0(at)gmail(dot)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
>

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Chandrababu Kilari 2024-09-29 16:37:42 Required Information on installing psql odbc
Previous Message Abhishek Kumar 2024-09-26 18:24:33 Error codes returned by SQLGetDiagRec