X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 50D6AD1B444 for ; Thu, 27 Nov 2003 13:09:16 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 69030-10 for ; Thu, 27 Nov 2003 09:08:48 -0400 (AST) Received: from paiol.terra.com.br (paiol.terra.com.br [200.176.3.18]) by svr1.postgresql.org (Postfix) with ESMTP id 6FAAED1B43E for ; Thu, 27 Nov 2003 09:08:44 -0400 (AST) Received: from penedo.terra.com.br (penedo.terra.com.br [200.176.3.48]) by paiol.terra.com.br (Postfix) with ESMTP id AE11284893D for ; Thu, 27 Nov 2003 11:08:46 -0200 (BRST) Received: from ttcristian (200-180-005-167.fnsce7006.dsl.brasiltelecom.net.br [200.180.5.167]) (authenticated user cristian_custodio) by penedo.terra.com.br (Postfix) with ESMTP id 2A78A4C078 for ; Thu, 27 Nov 2003 11:08:45 -0200 (BRST) Message-ID: <002901c3b4ef$92333a00$b301a8c0@ttcristian> Reply-To: "Cristian Custodio" From: "Cristian Custodio" To: References: Subject: Re: Character invalid saving memo with UpdateSQL Date: Thu, 27 Nov 2003 11:05:53 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0026_01C3B4D6.6C8DCFE0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/119 X-Sequence-Number: 3521 This is a multi-part message in MIME format. ------=_NextPart_000_0026_01C3B4D6.6C8DCFE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Its imposible. We are converting ours application in Oracle to PG. I will try create a trigger or a function to resolve this problem. Thanks, Cristian ----- Original Message -----=20 From: Leeuw van der, Tim=20 To: pgsql-odbc@postgresql.org=20 Sent: Thursday, November 27, 2003 8:41 AM Subject: Re: [ODBC] Character invalid saving memo with UpdateSQL In quite a lot of databases, VARCHAR has an upper limit of 255 characters= . I would say that most likely some of the libraries don't count of ever ha= ving a VARCHAR of greater length than that. It sounds like a buffer-overrun= problem, but I couldn't say where - in the postgresql ODBC drivers, or in = other parts of the odbc layers / libraries. Most like not in the postgresql= drivers though. I don't know what BDE is - some sort of library on top of ODBC? If so, wh= at happens if you try to insert/update such long strings using direct ODBC?= Or from another platform than Delphi, from MS-Access for instance? regards, --Tim -----Original Message----- From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgres= ql.org]On Behalf Of Cristian Custodio Sent: donderdag 27 november 2003 12:59 To: pgsql-odbc@postgresql.org Subject: Re: [ODBC] Character invalid saving memo with UpdateSQL I'm using LATIN1 but the problem happened with any other database.=20 It Occur with any varchar column greatest 255 characters. Cristian ----- Original Message -----=20 From: Richard Combs=20 To: Cristian Custodio=20 Cc: pgsql-odbc@postgresql.org=20 Sent: Wednesday, November 26, 2003 2:50 PM Subject: Re: [ODBC] Character invalid saving memo with UpdateSQL I haven't used the BDE in a while, however it looks like a problem wi= th character sets. That is BDE is using one character set and PG is using = another, hence the "invalid" characters. Check the postgreSQL documentatio= n on localization to see how to make your server recognize other language (= character) sets. One other question, does this happen only with varchar and only with = that one column, or can you duplicate the problem with character type in an= other column? Cristian Custodio wrote: I'm using delphi 5 and PG: 7.3.4 and BDE I have 1 varchar(4000) column. When I try post any value in this co= lumn using UpdateSQL it save very invalids caracters. Like this: =ED=ED= =ED=ED=ED=ED=ED=ED=ED. Any body could help me? Thanks, Cristian Luciano Custodio=20 ------=_NextPart_000_0026_01C3B4D6.6C8DCFE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Its imposible. We are converting= ours=20 application in Oracle to PG.
 
I will try create a trigger or a func= tion to=20 resolve this problem.
 
Thanks,
 
Cristian
 
 
 
 
----- Original Message -----
Fro= m:=20 Leeuw van der, Tim
To: pgsql-odbc@postgresql.org <= /DIV>
Sent: Thursday, November 27, 2003 = 8:41=20 AM
Subject: Re: [ODBC] Character inva= lid=20 saving memo with UpdateSQL

In=20 quite a lot of databases, VARCHAR has an upper limit of 255 characters. I= =20 would say that most likely some of the libraries don't count of ever= =20 having a VARCHAR of greater length than that. It sounds like a=20 buffer-overrun problem, but I couldn't say where - in the postgresql ODBC= =20 drivers, or in other parts of the odbc layers / libraries. Most like not = in=20 the postgresql drivers though.
 
I=20 don't know what BDE is - some sort of library on top of ODBC? If so, what= =20 happens if you try to insert/update such long strings using direct ODBC? = Or=20 from another platform than Delphi, from MS-Access for=20 instance?
 
regards,
 
--Tim
-----Original Message-----
From:=20 pgsql-odbc-owner@postgresql.org=20 [mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of Cristian=20 Custodio
Sent: donderdag 27 november 2003 12:59
To:= =20 pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Character inval= id=20 saving memo with UpdateSQL

I'm using LATIN1 but the problem = happened=20 with any other database.
 
It Occur with any varchar column great= est 255=20 characters.
 
Cristian
 
 
----- Original Message -----
From:=20 Richar= d=20 Combs
To: Cristian Custodio =
Cc: pgsql-odbc@postgresql.org=20
Sent: Wednesday, November 26, = 2003=20 2:50 PM
Subject: Re: [ODBC] Character = invalid=20 saving memo with UpdateSQL

I haven't used the BDE in a while, however it looks li= ke a=20 problem with character sets.  That is BDE is using one character= set=20 and PG is using another, hence the "invalid" characters.  Check = the=20 postgreSQL documentation on localization to see how to make your serv= er=20 recognize other language (character) sets.

One other question,= does=20 this happen only with varchar and only with that one column, or can y= ou=20 duplicate the problem with character type in another=20 column?

Cristian Custodio wrote:
 
I'm using delphi 5 and PG: 7.3.4 a= nd=20 BDE
 
I have 1 varchar(4000) column. Whe= n I=20 try post any value in this column
using UpdateSQL it save very inval= ids=20 caracters. Like this: =ED=ED=ED=ED=ED=ED=ED=ED=ED.
 
Any body could help me?
 
Thanks,
 
Cristian Luciano Custodio=20
------=_NextPart_000_0026_01C3B4D6.6C8DCFE0--