From jb@anykey.co.il Tue May 16 15:45:39 2006 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-- From luf@pzkagis.cz Fri May 19 08:03:12 2006 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 CC51B9FA176 for ; Fri, 19 May 2006 05:03:12 -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 12321-08 for ; Fri, 19 May 2006 05:03:05 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id EB3799FA7B6 for ; Fri, 19 May 2006 05:03:04 -0300 (ADT) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k4J82wPJ012317; Fri, 19 May 2006 10:02:58 +0200 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k4J82w0L012316; Fri, 19 May 2006 10:02:58 +0200 Date: Fri, 19 May 2006 10:02:58 +0200 From: Ludek Finstrle To: Jonathan Blitz Cc: pgsql-odbc@postgresql.org Subject: Re: SQLCODE when using psqlODBC with libODBC++ Message-ID: <20060519080258.GB12232@soptik.pzkagis.cz> References: <008501c67907$9dbcb5c0$ddf71005@jonathanlaptop> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <008501c67907$9dbcb5c0$ddf71005@jonathanlaptop> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.88.2/1469/Thu May 18 22:27:11 2006 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/42 X-Sequence-Number: 7713 > I am using PostgreSQL version 8 with psqlODBC as the ODBC driver. You specify no psqlODBC version. Older versions have this bad behaviour. So if I use my crystal ball I see there only upgrade advice. > Everything works great except: > > When I get an SQL error it returns SQLCODE of 7 and SQLSTATE of “HY000” > every time. Regards, Luf From jb@anykey.co.il Fri May 19 09:23:10 2006 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 C67979F9430 for ; Fri, 19 May 2006 06:23:10 -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 26371-03 for ; Fri, 19 May 2006 06:23:01 -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 0E31D9F9429 for ; Fri, 19 May 2006 06:23:01 -0300 (ADT) Received: from [82.166.24.141] (helo=jonathanlaptop) by server.nextgap2000.com with esmtpa (Exim 4.52) id 1Fh1CD-0006zP-CZ; Fri, 19 May 2006 12:22:57 +0300 From: "Jonathan Blitz" To: "'Ludek Finstrle'" Cc: Subject: Re: SQLCODE when using psqlODBC with libODBC++ Date: Fri, 19 May 2006 12:23:59 +0200 Message-ID: <008401c67b2e$5997f200$ddf71005@jonathanlaptop> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 In-Reply-To: <20060519080258.GB12232@soptik.pzkagis.cz> Thread-index: AcZ7GrtlIPxkzNb2Q82hhDddnkVEAQAEsC9A 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/43 X-Sequence-Number: 7714 > > You specify no psqlODBC version. Older versions have this bad behaviour. > So if I use my crystal ball I see there only upgrade advice. I am using version 0.2.4pre3. Dated Sept 2005. I downloaded it from sourceforg.net Is there a newer version? Jonathan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.6.1/343 - Release Date: 05/18/2006 From luf@pzkagis.cz Fri May 19 11:20:43 2006 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 986A29FA372 for ; Fri, 19 May 2006 08:20:43 -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 38738-10 for ; Fri, 19 May 2006 08:20:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 2507C9F9F8F for ; Fri, 19 May 2006 08:20:32 -0300 (ADT) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k4JBKJ8w013738; Fri, 19 May 2006 13:20:19 +0200 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k4JBKICU013737; Fri, 19 May 2006 13:20:18 +0200 Date: Fri, 19 May 2006 13:20:18 +0200 From: Ludek Finstrle To: Jonathan Blitz Cc: pgsql-odbc@postgresql.org Subject: Re: SQLCODE when using psqlODBC with libODBC++ Message-ID: <20060519112018.GC12232@soptik.pzkagis.cz> References: <20060519080258.GB12232@soptik.pzkagis.cz> <008401c67b2e$5997f200$ddf71005@jonathanlaptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <008401c67b2e$5997f200$ddf71005@jonathanlaptop> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.88.2/1469/Thu May 18 22:27:11 2006 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/44 X-Sequence-Number: 7715 Fri, May 19, 2006 at 12:23:59PM +0200, Jonathan Blitz napsal(a): > > You specify no psqlODBC version. Older versions have this bad behaviour. > > So if I use my crystal ball I see there only upgrade advice. > > I am using version 0.2.4pre3. Dated Sept 2005. > I downloaded it from sourceforg.net > > Is there a newer version? From jb@anykey.co.il Fri May 19 11:33:06 2006 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 E001A9FA3AD for ; Fri, 19 May 2006 08:33:06 -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 42140-06 for ; Fri, 19 May 2006 08:33:01 -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 5B0629FA372 for ; Fri, 19 May 2006 08:33:01 -0300 (ADT) Received: from [82.166.55.211] (helo=jonathanlaptop) by server.nextgap2000.com with esmtpa (Exim 4.52) id 1Fh3Dz-0007sQ-TJ; Fri, 19 May 2006 14:32:56 +0300 From: "Jonathan Blitz" To: "'Ludek Finstrle'" Cc: Subject: Re: SQLCODE when using psqlODBC with libODBC++ Date: Fri, 19 May 2006 14:33:58 +0200 Message-ID: <00a001c67b40$81f26e30$ddf71005@jonathanlaptop> MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 In-Reply-To: <20060519112018.GC12232@soptik.pzkagis.cz> Thread-index: AcZ7Nk5fmO+b8O/2Sj+NeEAeXlfBxAACbAsw 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/45 X-Sequence-Number: 7716 > -----Original Message----- > From: Ludek Finstrle [mailto:luf@pzkagis.cz] > Sent: Friday, May 19, 2006 1:20 PM > To: Jonathan Blitz > Cc: pgsql-odbc@postgresql.org > Subject: Re: [ODBC] SQLCODE when using psqlODBC with libODBC++ > > Fri, May 19, 2006 at 12:23:59PM +0200, Jonathan Blitz napsal(a): > > > You specify no psqlODBC version. Older versions have this bad behaviour. > > > So if I use my crystal ball I see there only upgrade advice. > > > > I am using version 0.2.4pre3. Dated Sept 2005. > > I downloaded it from sourceforg.net > > > > Is there a newer version? > > >From where? This list is for psqlodbc from pgfoundry.org. The latest > version is 08.02.0002. > Are we talking both about psqlodbc? Could you send the URL for sf.net > project (I try to locate it with no success)? > > Please try the newest psqlodbc from pgfoundry.org. > > Regards, > > Luf > Oops. I am totally confused. I thought u asked for the version of libODBC++. I am now totally lost. I am new to accessing PostgreSQL from C++. I already had PostgreSQL installed with the ODBC driver since I use it for another program (Poker Tracker). I wanted to write a C++ program to access the same database so I used libODBC++ to issue the commands from within C++. I am probably doing something wrong. When I look at the ODBC connection for the database I see that I have a choice of 3 drivers: PostgreSQL - version 8.02.00.02 PostgreSQL ANSI - version 8.01.02.00 PostgreSQL Unicode - version 8.01.02.00 The first one is the one selected. Jonathan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.392 / Virus Database: 268.6.1/343 - Release Date: 05/18/2006