From: Andrus <kobruleht2@hot.ee>
To: pgsql-odbc@postgresql.org
Subject: How to get error details from Visual Foxpro using latest driver
Date: Mon, 4 Mar 2019 09:51:46 +0200
Message-ID: <DF76A6A059BB4D5989CB6BED807F5F2C@dell2> (raw)
Latest PostgreSql official psqlODBC driver (version 11.00.0000 , 32 bit)
does not return error details in Microsoft Visual Foxpro.
After error FoxPro commands
AERROR(laerror)
disp memory like laerror
returns same error message in laerror third element:
LAERROR Local A showerror
( 1, 1) N 1526 ( 1526,00000000)
( 1, 2) C "Connectivity error: ERROR: insert or update o
n table "rid" violates foreign key constraint
"rid_yhik_fkey";
Error while executing the que
ry"
( 1, 3) C "ERROR: insert or update on table "rid" violat
es foreign key constraint "rid_yhik_fkey";
Err
or while executing the query"
( 1, 4) C "23503"
( 1, 5) N 1 ( 1,00000000)
( 1, 6) N 1 ( 1,00000000)
( 1, 7) C
in older psqlODBC driver
laError[1,3] contains error details:
Key (yhik)=(TK ) is not present in table "mootyhik".;
How to get error details using latest psqlODBC driver ?
I can provide odbc log or use additional ODBC API calls if those can invoked
from FoxPro
Posted also in
https://stackoverflow.com/questions/54978713/how-to-get-psqlodbc-error-details-in-visual-foxpro
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-odbc@postgresql.org
Cc: kobruleht2@hot.ee
Subject: Re: How to get error details from Visual Foxpro using latest driver
In-Reply-To: <DF76A6A059BB4D5989CB6BED807F5F2C@dell2>
References: <DF76A6A059BB4D5989CB6BED807F5F2C@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