Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 6E5469FB2F3 for ; Thu, 19 Oct 2006 11:41:58 -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 38364-07-3 for ; Thu, 19 Oct 2006 11:41:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from server.nextgap2000.com (server.nextgap2000.com [66.98.160.7]) by postgresql.org (Postfix) with ESMTP id 834739FA332 for ; Thu, 19 Oct 2006 11:41:42 -0300 (ADT) Received: from 85.64.250.189.dynamic.barak-online.net ([85.64.250.189] helo=jonathanlaptop) by server.nextgap2000.com with esmtpa (Exim 4.52) id 1GaZ5W-0006ms-L1 for pgsql-odbc@postgresql.org; Thu, 19 Oct 2006 16:41:40 +0200 From: "Jonathan Blitz" To: Subject: Problem with error messages in VC++ 2005 Date: Thu, 19 Oct 2006 16:40:06 +0200 Message-ID: <001201c6f38c$7c375590$ddf71005@jonathanlaptop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0013_01C6F39D.3FC02590" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 Thread-Index: AcbzjHebO/CdbvxSSYC0xzf6AU0y5g== X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server.nextgap2000.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - anykey.co.il X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.116 tagged_above=0 required=5 tests=HTML_MESSAGE, HTML_TEXT_AFTER_BODY X-Spam-Level: X-Archive-Number: 200610/56 X-Sequence-Number: 8319 This 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

I am using PostgreSQL version 8.0 with VC++ = 2005.

 

I have no problem accessing and getting data but I am = having problems with getting errors messages = correctly.

 

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.

 

For example “Error: Table my_table does not = exist”

Comes out as “Error:2 Table my  abl  = do   ot  exis “

 

In the middle there are all sorts of weird = characters.

 

I have tried changing and upgrading the ODBC driver = but nothing seems to help.

 

I am now using version 8.02.01.00 but to no = avail.

 

Anyone had similar = problems?

 

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--