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 D370D9FA2DB for ; Mon, 5 Jun 2006 09:03: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 81936-07 for ; Mon, 5 Jun 2006 09:03:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from paulista.softwareexpress.com.br (200-171-213-106.softwareexpress.com.br [200.171.213.106]) by postgresql.org (Postfix) with ESMTP id 5FD509FA111 for ; Mon, 5 Jun 2006 09:03:30 -0300 (ADT) Received: from MRENATO (unknown [192.168.53.60]) by paulista.softwareexpress.com.br (Postfix) with ESMTP id A085828509 for ; Mon, 5 Jun 2006 09:05:38 -0300 (BRT) Reply-To: From: "Renato Gondim" To: Subject: RES: Return code for bad command Date: Mon, 5 Jun 2006 09:03:20 -0300 Organization: =?us-ascii?Q?Software_Express_Informatica_Ltda.?= Message-ID: <000201c68898$09b32620$3c35a8c0@MRENATO> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20060604160443.GA21059@soptik.pzkagis.cz> Importance: Normal X-SoftwareExpressLinux-MailScanner-Information: Please contact the ISP for more information X-SoftwareExpressLinux-MailScanner: Found to be clean X-MailScanner-From: renato.gondim@softwareexpress.com.br X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/9 X-Sequence-Number: 7757 I'm having the same behavior and the sqlstate returns the same code: = HY000. Reading the MSDN this code is described as "General error". Renato Gondim. -----Mensagem original----- De: pgsql-odbc-owner@postgresql.org = [mailto:pgsql-odbc-owner@postgresql.org] Em nome de Ludek Finstrle Enviada em: domingo, 4 de junho de 2006 13:05 Para: Jonathan Blitz Cc: pgsql-odbc@postgresql.org Assunto: Re: [ODBC] Return code for bad command > 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 ... > 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