X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id DB89D9FA502 for ; Thu, 20 Jul 2006 05:00:30 -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 46423-08 for ; Thu, 20 Jul 2006 05:00:21 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by postgresql.org (Postfix) with ESMTP id E05889FA5F0 for ; Thu, 20 Jul 2006 05:00:20 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id u2so722306uge for ; Thu, 20 Jul 2006 01:00:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=sYW1w8rnAfVD52KGSyXOXXEp1XzKuqUGp/Dq33D+oNAUjMVnrTSPv3l9AaHBa4IGT1Y5YPmt5GPuooWEypZ6mA4ezl2hNLHC2R/PYapn/8o5fSYm++z/5PXRxHjRERrxFZ+t1pLXoF2bTiAvY+qhsKOIpDFVJ744UcAtR4++UIo= Received: by 10.78.116.19 with SMTP id o19mr171604huc; Thu, 20 Jul 2006 01:00:19 -0700 (PDT) Received: by 10.78.50.4 with HTTP; Thu, 20 Jul 2006 01:00:19 -0700 (PDT) Message-ID: <92d3a4950607200100q441f7ea7pef9946b628b37bd3@mail.gmail.com> Date: Thu, 20 Jul 2006 10:00:19 +0200 From: Antoine To: "Ludek Finstrle" Subject: Re: update field with lf chars problem Cc: pgsql-odbc@postgresql.org In-Reply-To: <20060720071448.GB3797@soptik.pzkagis.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <92d3a4950607200002l35cea5f8icb56fc0d09320447@mail.gmail.com> <20060720071448.GB3797@soptik.pzkagis.cz> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/24 X-Sequence-Number: 7935 On 20/07/06, Ludek Finstrle 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 =E0 jour bas=E9e sur une requ=EAte a =E9chou=E9e car la ligne =E0 m= ettre =E0 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 --=20 This is where I should put some witty comment.