From: | "Andrus" <kobruleht2(at)hot(dot)ee> |
---|---|
To: | <pgsql-odbc(at)postgresql(dot)org>, "Adrian Klaver" <adrian(dot)klaver(at)aklaver(dot)com> |
Subject: | Re: How to get correct error message before logging to database |
Date: | 2016-07-05 20:42:54 |
Message-ID: | A302DD938A9B4CBC80B61456ECFF5DD6@dell2 |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
Hi!
>That is many versions past. The only thing I can think of at the moment is:
>https://odbc.postgresql.org/docs/release.html
>psqlODBC 09.05.0100 Release
>Changes:
> Use libpq for all communication with the server
> Previously, libpq was only used for authentication. Using it for all
> communication lets us remove a lot of duplicated code. libpq is now
> required for building or using libpq.
>You might try the version immediately preceding the above:
>psqlODBC 09.03.0400
>to see if you get the old behavior or new.
09.03.0400 returns proper error message on login with invalid server
address:
could not translate host name "xxx" to address: Unknown host
AERROR() returns also sql error code.
How to get proper error message in 09.05.0300 ?
Maybe libpq does not return error messages before connection is established.
I can post odbc log if this helps.
Andrus.
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2016-07-05 21:28:30 | Re: How to get correct error message before logging to database |
Previous Message | Adrian Klaver | 2016-07-05 15:45:06 | Re: How to get correct error message before logging to database |