X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A96029F9F8F for ; Tue, 16 May 2006 12:45:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 91770-04 for ; Tue, 16 May 2006 12:45:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from server.nextgap2000.com (server.nextgap2000.com [66.98.160.7]) by postgresql.org (Postfix) with ESMTP id B14F29F9C18 for ; Tue, 16 May 2006 12:45:27 -0300 (ADT) Received: from [82.166.55.109] (helo=jonathanlaptop) by server.nextgap2000.com with esmtpa (Exim 4.52) id 1Fg1je-0006dD-1w for pgsql-odbc@postgresql.org; Tue, 16 May 2006 18:45:23 +0300 From: "Jonathan Blitz" To: Subject: SQLCODE when using psqlODBC with libODBC++ Date: Tue, 16 May 2006 18:41:39 +0200 Message-ID: <008501c67907$9dbcb5c0$ddf71005@jonathanlaptop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0086_01C67918.615C6920" X-Mailer: Microsoft Office Outlook 11 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 thread-index: AcZ5B5opsNcOn9CXSka7V16ITWXMdw== X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.nextgap2000.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anykey.co.il X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/36 X-Sequence-Number: 7707 This is a multi-part message in MIME format. ------=_NextPart_000_0086_01C67918.615C6920 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable I am using PostgreSQL version 8 with psqlODBC as the ODBC driver. =20 I am writing programs in C++ and using libODBC++ for the C++ interface. =20 Everything works great except: When I get an SQL error it returns SQLCODE of 7 and SQLSTATE of = =93HY000=94 every time. The only correct value is the SQLERRM. =20 I am probably doing something stupid but I couldn=92t find anything = anywhere about it. =20 Jonathan Blitz =20 --=20 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.5.6/340 - Release Date: = 05/15/2006 =20 ------=_NextPart_000_0086_01C67918.615C6920 Content-Type: text/html; charset="windows-1250" Content-Transfer-Encoding: quoted-printable

I am using PostgreSQL version 8 with psqlODBC as the = ODBC driver.

 

I am writing programs in C++ and using libODBC++ for = the C++ interface.

 

Everything works great = except:

When I get an SQL error it returns SQLCODE of 7 and = SQLSTATE of “HY000” every time.

The only correct value is the = SQLERRM.

 

I am probably doing something stupid but I = couldn’t find anything anywhere about it.

 

Jonathan Blitz

 


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.5.6/340 - Release Date: = 05/15/2006

------=_NextPart_000_0086_01C67918.615C6920--