Return code for bad command

From: "Jonathan Blitz" <jb(at)anykey(dot)co(dot)il>
To: <pgsql-odbc(at)postgresql(dot)org>
Subject: Return code for bad command
Date: 2006-06-03 23:08:31
Message-ID: 077401c68762$a4e0d2a0$ddf71005@jonathanlaptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Ludek Finstrle 2006-06-04 16:04:43 Re: Return code for bad command
Previous Message noreply 2006-06-03 03:14:06 [ psqlodbc-Bugs-1000630 ] Related to bug GenerateBDDirectMethod fails in VS studio 2005 with ODBC