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