SQLCODE when using psqlODBC with libODBC++
am 16.05.2006 18:41:39 von Jonathan BlitzThis is a multi-part message in MIME format.
------=_NextPart_000_0086_01C67918.615C6920
Content-Type: text/plain;
charset="windows-1250"
Content-Transfer-Encoding: quoted-printable
I am using PostgreSQL version 8 with psqlODBC as the ODBC driver.
=20
I am writing programs in C++ and using libODBC++ for the C++ interface.
=20
Everything works great except:
When I get an SQL error it returns SQLCODE of 7 and SQLSTATE of =
=93HY000=94
every time.
The only correct value is the SQLERRM.
=20
I am probably doing something stupid but I couldn=92t find anything =
anywhere
about it.
=20
Jonathan Blitz
=20
--=20
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
=20
------=_NextPart_000_0086_01C67918.615C6920
Content-Type: text/html;
charset="windows-1250"
Content-Transfer-Encoding: quoted-printable
xmlns=3D"http://www.w3.org/TR/REC-html40">
charset=3Dwindows-1250">
style=3D'font-size:10.0pt;
font-family:Arial'>I am using PostgreSQL version 8 with psqlODBC as the =
ODBC
driver.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I am writing programs in C++ and using libODBC++ for =
the C++
interface.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Everything works great =
except:
style=3D'font-size:10.0pt;
font-family:Arial'>When I get an SQL error it returns SQLCODE of 7 and =
SQLSTATE
of “HY000” every time.
style=3D'font-size:10.0pt;
font-family:Arial'>The only correct value is the =
SQLERRM.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I am probably doing something stupid but I =
couldn’t
find anything anywhere about it.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Jonathan Blitz
style=3D'font-size:10.0pt;
font-family:Arial'>
--
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
------=_NextPart_000_0086_01C67918.615C6920--