Re: How to fix psqlODBC driver regression to get error messagedetails

Поиск
Список
Период
Сортировка
От Clemens Ladisch
Тема Re: How to fix psqlODBC driver regression to get error messagedetails
Дата
Msg-id caad6457-67d1-314b-2642-ad343aa8069f@ladisch.de
обсуждение исходный текст
Ответ на How to fix psqlODBC driver regression to get error message details  ("Andrus" <kobruleht2@hot.ee>)
Список 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 по дате отправления:

Предыдущее
От: Clemens Ladisch
Дата:
Сообщение: Re: Error on install ODBC driver
Следующее
От: "Inoue, Hiroshi"
Дата:
Сообщение: Re: How to fix psqlODBC driver regression to get error messagedetails