Problem with error messages in VC++ 2005
am 19.10.2006 16:40:06 von Jonathan BlitzThis is a multi-part message in MIME format.
------=_NextPart_000_0013_01C6F39D.3FC02590
Content-Type: text/plain;
charset="windows-1250"
Content-Transfer-Encoding: quoted-printable
I am using PostgreSQL version 8.0 with VC++ 2005.
=20
I have no problem accessing and getting data but I am having problems =
with
getting errors messages correctly.
=20
Whenever there is an error and I invoke SQLGetDiagRec to get the error
message I get semi-garbled data.
The message is obviously there as it is about 80% right. However, there =
are
random characters sprinkled about in the message.
=20
For example =93Error: Table my_table does not exist=94
Comes out as =93Error:2 Table my abl do ot exis =93
=20
In the middle there are all sorts of weird characters.
=20
I have tried changing and upgrading the ODBC driver but nothing seems to
help.
=20
I am now using version 8.02.01.00 but to no avail.
=20
Anyone had similar problems?
=20
Jonathan Blitz
--=20
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.5/483 - Release Date: =
10/18/2006
=20
------=_NextPart_000_0013_01C6F39D.3FC02590
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.0 with VC++ =
2005.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I have no problem accessing and getting data but I am =
having
problems with getting errors messages =
correctly.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Whenever there is an error and I invoke SQLGetDiagRec =
to get
the error message I get semi-garbled data.
style=3D'font-size:10.0pt;
font-family:Arial'>The message is obviously there as it is about 80% =
right. However,
there are random characters sprinkled about in the =
message.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>For example “Error: Table my_table does not =
exist”
style=3D'font-size:10.0pt;
font-family:Arial'>Comes out as “Error:2 Table my abl =
do ot exis “
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>In the middle there are all sorts of weird =
characters.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I have tried changing and upgrading the ODBC driver =
but
nothing seems to help.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>I am now using version 8.02.01.00 but to no =
avail.
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Anyone had similar =
problems?
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:10.0pt;
font-family:Arial'>Jonathan Blitz
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.5/483 - Release Date: =
10/18/2006
------=_NextPart_000_0013_01C6F39D.3FC02590--