From: Antoine <melser.anton@gmail.com>
To: Ludek Finstrle <luf@pzkagis.cz>
Cc: pgsql-odbc@postgresql.org
Subject: Re: update field with lf chars problem
Date: Thu, 20 Jul 2006 10:00:19 +0200
Message-ID: <92d3a4950607200100q441f7ea7pef9946b628b37bd3@mail.gmail.com> (raw)
In-Reply-To: <20060720071448.GB3797@soptik.pzkagis.cz>
References: <92d3a4950607200002l35cea5f8icb56fc0d09320447@mail.gmail.com>
<20060720071448.GB3797@soptik.pzkagis.cz>
On 20/07/06, Ludek Finstrle <luf@pzkagis.cz> wrote:
> > We are running 8.01.102 (pg 8.1.1) and we have a quite annoying error.
>
> It's quite old version. Is there some reason to not using newer
> version?
>
> > We are able to insert rows that contain line feed characters (and
> > maybe crlf too) into a varchar(14) field but when we attempt to update
> > the same row via odbc we get an error. This happens even though we are
>
> What kind of error. The error message could clarify the problem a little
> bit.
The message in French is:
La mise à jour basée sur une requête a échouée car la ligne à mettre à
jour est introuvable.
Which translates roughly to English (sorry couldn't find the proper
translation):
The query-based update failed because the row to update cannot be found.
The column in question is NOT in the primary key, and this only
happens when the row is created with lf (and probably crlf) in it -
there is no problem setting it to null in other circumstances.
>
> > setting the field to null.
> > Does anyone have any info on this?
>
> Not at first sight. Does LF <-> CRLF option take some effect?
That seems to fix it. I guess I understand why... I would still
consider it a bug though - shouldn't the driver take into account the
fact that it is doing this conversion when looking for the row?
Cheers
Antoine
--
This is where I should put some witty comment.
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: melser.anton@gmail.com, luf@pzkagis.cz
Subject: Re: update field with lf chars problem
In-Reply-To: <92d3a4950607200100q441f7ea7pef9946b628b37bd3@mail.gmail.com>
References: <92d3a4950607200002l35cea5f8icb56fc0d09320447@mail.gmail.com> <20060720071448.GB3797@soptik.pzkagis.cz> <92d3a4950607200100q441f7ea7pef9946b628b37bd3@mail.gmail.com>
* 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