From: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: How to get error message details from libpq based psqlODBC driver (regression)
Date: Sun, 23 Feb 2020 21:15:55 +0200
Message-ID: <1C5561495CAF43B08ADBD385D63A7D21@dell2> (raw)
In-Reply-To: <1aae144e-3b2b-38cc-0b4e-222960ff95a7@aklaver.com>
References: <A7FCF8D5FF9D43299357665878A0BCA0@dell2>
<a4546360-1fa0-b6e5-b2ad-f99b84f352f0@aklaver.com>
<494B191537234C4A81D7A56848B9946D@dell2>
<1aae144e-3b2b-38cc-0b4e-222960ff95a7@aklaver.com>
Hi!
>I don't have an answer for you. There maybe someone else on this list that
>could help, though I think your best bet would be to ask the question again
>on the pgsql-odbc list.
I posted it in pgsql-odbc list.
In pgsql odbc source code file connection.c: line 866
contains:
errprimary = PQresultErrorField(pgres, PG_DIAG_MESSAGE_PRIMARY);
which probably gets only primary error message.
To get error message detail, PG_DIAG_MESSAGE_DETAIL should used according
to https://www.postgresql.org/docs/current/libpq-exec.html.
Unfortunately PG_DIAG_MESSAGE_DETAIL is not used in pgsql-odbc source code.
Andrus.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: kobruleht2@hot.ee, adrian.klaver@aklaver.com
Subject: Re: How to get error message details from libpq based psqlODBC driver (regression)
In-Reply-To: <1C5561495CAF43B08ADBD385D63A7D21@dell2>
References: <A7FCF8D5FF9D43299357665878A0BCA0@dell2> <a4546360-1fa0-b6e5-b2ad-f99b84f352f0@aklaver.com> <494B191537234C4A81D7A56848B9946D@dell2> <1aae144e-3b2b-38cc-0b4e-222960ff95a7@aklaver.com> <1C5561495CAF43B08ADBD385D63A7D21@dell2>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox