From jb@anykey.co.il Sat Jun 3 22:08:18 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 5421D9FA6B1 for ; Sat, 3 Jun 2006 19:08:18 -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 11450-01 for ; Sat, 3 Jun 2006 19:08:09 -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 018169FA6B0 for ; Sat, 3 Jun 2006 19:08:08 -0300 (ADT) Received: from 85.64.138.176.dynamic.barak-online.net ([85.64.138.176] helo=jonathanlaptop) by server.nextgap2000.com with esmtpa (Exim 4.52) id 1FmeHs-0004c3-Tn for pgsql-odbc@postgresql.org; Sun, 04 Jun 2006 01:08:05 +0300 From: "Jonathan Blitz" To: Subject: Return code for bad command Date: Sun, 4 Jun 2006 01:08:31 +0200 Message-ID: <077401c68762$a4e0d2a0$ddf71005@jonathanlaptop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0775_01C68773.6869A2A0" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Thread-Index: AcaHYqDrslCo03wbTJOZlxU1OeXJ7A== 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: 200606/6 X-Sequence-Number: 7754 This is a multi-part message in MIME format. ------=_NextPart_000_0775_01C68773.6869A2A0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable I am using PostgreSQL version 8.0 with VC++ 2005. =20 I use the native VC++ ODBC classes to access the PostgreSQL ODBC driver. =20 When I issue an SQL command with an error I always get the same error = code: 7 =20 The message is ok but the code would be kinda useful =96 don=92t really = want to start parsing the message. =20 I tried it with the 8.02.00.02 driver and the ANSI version of the = 8.01.02.00 =20 Both give the same result. =20 Is this a bug or am I doing something wrong? =20 Jonathan Blitz --=20 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: = 06/02/2006 =20 ------=_NextPart_000_0775_01C68773.6869A2A0 Content-Type: text/html; charset="windows-1250" Content-Transfer-Encoding: quoted-printable

I am using PostgreSQL version 8.0 with VC++ = 2005.

 

I use the native VC++ ODBC classes to access the = PostgreSQL ODBC driver.

 

When I issue an SQL command with an error I always = get the same error code: 7

 

The message is ok but the code would be kinda useful = – don’t really want to start parsing the message.

 

I tried it with the 8.02.00.02 driver and the ANSI = version of the 8.01.02.00

 

Both give the same = result.

 

Is this a bug or am I doing something = wrong?

 

Jonathan Blitz


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: = 06/02/2006

------=_NextPart_000_0775_01C68773.6869A2A0-- From luf@pzkagis.cz Sun Jun 4 16:04:23 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 AF1409FA5CE for ; Sun, 4 Jun 2006 13:04:23 -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 24222-09 for ; Sun, 4 Jun 2006 13:04:13 -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 50BD09F9316 for ; Sun, 4 Jun 2006 13:04:11 -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 k54G4iFh021093; Sun, 4 Jun 2006 18:04:44 +0200 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k54G4ha4021092; Sun, 4 Jun 2006 18:04:43 +0200 Date: Sun, 4 Jun 2006 18:04:43 +0200 From: Ludek Finstrle To: Jonathan Blitz Cc: pgsql-odbc@postgresql.org Subject: Re: Return code for bad command Message-ID: <20060604160443.GA21059@soptik.pzkagis.cz> References: <077401c68762$a4e0d2a0$ddf71005@jonathanlaptop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <077401c68762$a4e0d2a0$ddf71005@jonathanlaptop> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.88.2/1512/Sun Jun 4 11:58:49 2006 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/7 X-Sequence-Number: 7755 > I am using PostgreSQL version 8.0 with VC++ 2005. > > I use the native VC++ ODBC classes to access the PostgreSQL ODBC driver. > > When I issue an SQL command with an error I always get the same error code: > 7 ... > Is this a bug or am I doing something wrong? It's normal behaviour. Let's try read sqlstate (I don't know how it is accessed through VC++ ODBC classes. Regards, Luf From jb@anykey.co.il Sun Jun 4 16:06:37 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 EC6E19FA5CE for ; Sun, 4 Jun 2006 13:06:37 -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 25692-09 for ; Sun, 4 Jun 2006 13:06:23 -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 604029F9316 for ; Sun, 4 Jun 2006 13:06:23 -0300 (ADT) Received: from 85.65.36.164.dynamic.barak-online.net ([85.65.36.164] helo=jonathanlaptop) by server.nextgap2000.com with esmtpa (Exim 4.52) id 1Fmv7H-0001nI-Qa; Sun, 04 Jun 2006 19:06:17 +0300 From: "Jonathan Blitz" To: "'Ludek Finstrle'" Cc: Subject: Re: Return code for bad command Date: Sun, 4 Jun 2006 19:06:42 +0200 Message-ID: <087c01c687f9$448e22d0$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: <20060604160443.GA21059@soptik.pzkagis.cz> Thread-Index: AcaH8JIeg9Ri1H2kTaeSZ/k353KwMgACKTgA 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: 200606/8 X-Sequence-Number: 7756 Ok - I'll give it a try and see what I get. > -----Original Message----- > From: Ludek Finstrle [mailto:luf@pzkagis.cz] > Sent: Sunday, June 04, 2006 6:05 PM > To: Jonathan Blitz > Cc: pgsql-odbc@postgresql.org > Subject: Re: [ODBC] Return code for bad command > > > I am using PostgreSQL version 8.0 with VC++ 2005. > > > > I use the native VC++ ODBC classes to access the PostgreSQL ODBC driver. > > > > When I issue an SQL command with an error I always get the same error code: > > 7 > > ... > > > Is this a bug or am I doing something wrong? > > It's normal behaviour. Let's try read sqlstate (I don't know how it is > accessed through VC++ ODBC classes. > > Regards, > > Luf > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > > > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 6/2/2006 > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 06/02/2006 > -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.8.1/355 - Release Date: 06/02/2006