Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0q1r-0000Pr-Ih for pgsql-odbc@arkaria.postgresql.org; Mon, 04 Mar 2019 16:01:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h0q1p-0004IF-78 for pgsql-odbc@arkaria.postgresql.org; Mon, 04 Mar 2019 16:01:21 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0iOS-000540-Qu for pgsql-odbc@lists.postgresql.org; Mon, 04 Mar 2019 07:52:12 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.122]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h0iOQ-0006Fv-AO for pgsql-odbc@postgresql.org; Mon, 04 Mar 2019 07:52:12 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 7310C1C41 for ; Mon, 4 Mar 2019 09:52:09 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CnLSoxtzgzfY for ; Mon, 4 Mar 2019 09:52:07 +0200 (EET) Received: from mail.hot.ee (hot-relayhost2.estpak.ee [213.180.2.80]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 62B151C5B for ; Mon, 4 Mar 2019 09:52:07 +0200 (EET) Received: from dell2 (66-63-196-88.sta.estpak.ee [88.196.63.66]) (Authenticated sender: kobruleht2) by HOT-Relayhost2.estpak.ee (Postfix) with ESMTPSA id 44CXKz2PfxzPV for ; Mon, 4 Mar 2019 09:52:06 +0200 (EET) Message-ID: From: "Andrus" To: Subject: How to get error details from Visual Foxpro using latest driver Date: Mon, 4 Mar 2019 09:51:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="windows-1257"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.