SQLCODE when using psqlODBC with libODBC++

From: "Jonathan Blitz" <jb(at)anykey(dot)co(dot)il>
To: <pgsql-odbc(at)postgresql(dot)org>
Subject: SQLCODE when using psqlODBC with libODBC++
Date: 2006-05-16 16:41:39
Message-ID: 008501c67907$9dbcb5c0$ddf71005@jonathanlaptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Bart Samwel 2006-05-17 08:46:07 Output parameters
Previous Message zhaoxin 2006-05-16 14:18:57 how mapping the TEXT Type to the ODBC Type ?