pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Cristian Custodio <cristian_custodio@terra.com.br>
To: pgsql-odbc@postgresql.org
Subject: Re: Character invalid saving memo with UpdateSQL
Date: Thu, 27 Nov 2003 14:43:17 -0300
Message-ID: <005d01c3b50d$f1328c90$b301a8c0@ttcristian> (raw)
References: <DD0DC14935B1D211981A00105A1B28DB0A7B4C93@NL-ASD-EXCH-1>

I'll do this, thanks.

Cristian

  ----- Original Message ----- 
  From: Leeuw van der, Tim 
  To: 'Cristian Custodio' ; pgsql-odbc@postgresql.org 
  Sent: Thursday, November 27, 2003 11:17 AM
  Subject: RE: [ODBC] Character invalid saving memo with UpdateSQL


  Hi,

  If you're converting an application from Oracle to PG, that implies that in the Oracle DB you also had such large VARCHAR fields. And since that didn't give trouble, it furthermore implies that the problem is in the PG ODBC drivers.

  Perhaps you should file a bug against them?

  I have a varchar(1000) field in my db but since it's not actually used I haven't ran into any trouble with my application (using C#) (it's just a comment-field and I haven't filled the comment with sensible and large things in my tests, and I'm the only one testing with PG from time to time - regular testing is with MySQL and Oracle, production on Oracle only).

  About testing with MS-Access, I thought you could perhaps try to open the db tables as linked tables in Access, and execute an update-query from there just to see whether or not any garbage is entered into the database instead of the proper info.


  regards,

  --Tim

    -----Original Message-----
    From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of Cristian Custodio
    Sent: donderdag 27 november 2003 15:06
    To: pgsql-odbc@postgresql.org
    Subject: Re: [ODBC] Character invalid saving memo with UpdateSQL


    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 ----- 
      From: Leeuw van der, Tim 
      To: pgsql-odbc@postgresql.org 
      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 having 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, what 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@postgresql.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. 

        It Occur with any varchar column greatest 255 characters.

        Cristian


          ----- Original Message ----- 
          From: Richard Combs 
          To: Cristian Custodio 
          Cc: pgsql-odbc@postgresql.org 
          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 with character sets.  That is BDE is using one character set and PG is using another, hence the "invalid" characters.  Check the postgreSQL documentation 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 another 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 column
            using UpdateSQL it save very invalids caracters. Like this: ííííííííí.

            Any body could help me?

            Thanks,

            Cristian Luciano Custodio 

view thread (11+ messages)  latest in thread

Message-ID: <005d01c3b50d$f1328c90$b301a8c0@ttcristian>
Permalink:  ../005d01c3b50d$f1328c90$b301a8c0@ttcristian/
Also on:    postgresql.org/message-id/005d01c3b50d$f1328c90$b301a8c0@ttcristian

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: cristian_custodio@terra.com.br
  Subject: Re: Character invalid saving memo with UpdateSQL
  In-Reply-To: <005d01c3b50d$f1328c90$b301a8c0@ttcristian>
  References: <DD0DC14935B1D211981A00105A1B28DB0A7B4C93@NL-ASD-EXCH-1> <005d01c3b50d$f1328c90$b301a8c0@ttcristian>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox