Re: How to fix psqlODBC driver regression to get error messagedetails - Mailing list pgsql-odbc

From Clemens Ladisch
Subject Re: How to fix psqlODBC driver regression to get error messagedetails
Date
Msg-id caad6457-67d1-314b-2642-ad343aa8069f@ladisch.de
Whole thread Raw
In response to How to fix psqlODBC driver regression to get error message details  ("Andrus" <kobruleht2@hot.ee>)
List pgsql-odbc
Andrus wrote:
> Error message details like
>
>    Key (myfield)=(mykeyvalue) is not present in table "mymastertable".;
>
> are no more returned.

The problem is that psqlODBC does not call the libpq APIs that would
return this information; connection.c says:

    /*
     * The full message with details and context and everything could
     * be obtained with PQresultErrorMessage(). I think that would be
     * more user-friendly, but for now, construct a message with
     * severity and primary message, which is backwards compatible.
     */

There should be connection settings for the error verbosity and context
visibility.


Regards,
Clemens



pgsql-odbc by date:

Previous
From: Clemens Ladisch
Date:
Subject: Re: Error on install ODBC driver
Next
From: "Inoue, Hiroshi"
Date:
Subject: Re: How to fix psqlODBC driver regression to get error messagedetails