X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 574A19FB2F5 for ; Sun, 10 Sep 2006 15:45:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 03167-06 for ; Sun, 10 Sep 2006 18:45:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.refusion.com (mail.refusion.com [213.144.155.20]) by postgresql.org (Postfix) with ESMTP id 488D09FAA6E for ; Sun, 10 Sep 2006 15:45:08 -0300 (ADT) Received: from iwing by mail.refusion.com (Cipher TLSv1:RC4-MD5:128) (MDaemon PRO v9.0.4) with ESMTP id md50001148267.msg for ; Sun, 10 Sep 2006 20:45:05 +0200 Message-ID: <01e401c6d509$3a184990$0201a8c0@iwing> From: To: Subject: bug with TextAsLongVarchar=0: output scrambled Date: Sun, 10 Sep 2006 20:45:01 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01E1_01C6D519.FCDD7B70" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.3790.2663 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2757 X-Authenticated-Sender: info@alternize.com X-Spam-Processed: mail.refusion.com, Sun, 10 Sep 2006 20:45:05 +0200 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 80.238.133.7 X-Return-Path: me@alternize.com X-MDaemon-Deliver-To: pgsql-odbc@postgresql.org X-ClamAV: Pass X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.458 tagged_above=0 required=5 tests=HTML_40_50, HTML_MESSAGE, NO_REAL_NAME, SPF_HELO_PASS, UNPARSEABLE_RELAY X-Spam-Level: * X-Archive-Number: 200609/51 X-Sequence-Number: 8202 This is a multi-part message in MIME format. ------=_NextPart_000_01E1_01C6D519.FCDD7B70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi list a while ago i posted about a bug with unicode TEXT fields and pgODBC = (see below). i now was able to get down to the problem. if you use TextAsLongVarchar=3D0 with the latest drivers, then the = output from TEXT fields is scrambled. i was able to reproduce this by = having a text-field with as low as ~500 chars of data. the output = contained invalid charcters at random positions - and as early as after = the 240 character. the invalid characters seem to be 0x00 or the like, = which of course messes with the application. here's my full connection string: Driver=3D{PostgreSQL = UNICODE};Server=3Dlocalhost;Port=3D5432;Database=3Dmydb;UID=3Dmyuser;pwd=3D= mypass;TrueIsMinus1=3D1;BoolsAsChar=3D0;TextAsLongVarchar=3D0;UseDeclareF= etch=3D0 when using TextAsLongVarchar=3D1, data is returned fine. unfortunately, = some of our textfields are longer than longvarchars 8190 limit... when going back to driver 8.01.0102, TextAsLongVarchar=3D0 works = perfectly. the problem also exists in the latest driver release from = august. - thomas ----- Original Message -----=20 From: me@alternize.com=20 To: pgsql-odbc@postgresql.org=20 Sent: Friday, March 31, 2006 1:47 PM Subject: problem with latest stable driver hi list probably an old problem, but i wasn't able to follow the list for a = while. after we upgraded the odbc version to the latest driver (pgsql: = 8.1.3 with odbc: 8.1.2), all unicode TEXT-output was totaly messed up. i = wasn't able to find any changelogs descripting changes from the 8.1.1 = (where everything works just fine) to 8.1.2 (where ADODB output of TEXT = is totaly messed up on our win2k3 system).=20 this is probably a known problem by now, but as i wasn't able to find = any link to a newer dev-version on pgfoundry, i wanted to ask here what = the best steps are to avoid this (aside from downgrading to driver v. = 8.1.1) thanks, thomas ------=_NextPart_000_01E1_01C6D519.FCDD7B70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi list
 
a while ago i posted about a bug with = unicode TEXT=20 fields and pgODBC (see below). i now was able to get down to the=20 problem.
 
if you use TextAsLongVarchar=3D0 with = the latest=20 drivers, then the output from TEXT fields is scrambled. i was able to = reproduce=20 this by having a text-field with as low as ~500 chars of data. the = output=20 contained invalid charcters at random positions - and as early as after = the 240=20 character. the invalid characters seem to be 0x00 or the like, which of = course=20 messes with the application.
 
here's my full connection = string:
Driver=3D{PostgreSQL=20 UNICODE};Server=3Dlocalhost;Port=3D5432;Database=3Dmydb;UID=3Dmyuser;pwd=3D= mypass;TrueIsMinus1=3D1;BoolsAsChar=3D0;TextAsLongVarchar=3D0;UseDeclareF= etch=3D0
when using TextAsLongVarchar=3D1, data = is returned=20 fine. unfortunately, some of our textfields are longer than longvarchars = 8190=20 limit...
when going back to driver 8.01.0102,=20 TextAsLongVarchar=3D0 works perfectly. the problem also exists in the = latest=20 driver release from august.
 
- thomas
 
 
 
----- Original Message -----=20
From: me@alternize.com=20
Sent: Friday, March 31, 2006 1:47 PM
Subject: problem with latest stable driver

hi list
 
probably an old problem, but i wasn't = able to=20 follow the list for a while. after we upgraded the odbc version to the = latest=20 driver (pgsql: 8.1.3 with odbc: 8.1.2), all unicode TEXT-output was = totaly=20 messed up. i wasn't able to find any changelogs descripting changes from = the 8.1.1 (where everything works just fine) to 8.1.2 (where ADODB = output=20 of TEXT is totaly messed up on our win2k3 system).
 
this is probably a known problem by = now, but as i=20 wasn't able to find any link to a newer dev-version on pgfoundry, i = wanted to=20 ask here what the best steps are to avoid this (aside from downgrading = to driver=20 v. 8.1.1)
 
thanks,
thomas
------=_NextPart_000_01E1_01C6D519.FCDD7B70--