pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Romain Billon-Grand <romainbillongrand@yahoo.fr>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #8335: trim() un-document behaviour
Date: Fri, 9 Aug 2013 03:40:29 -0700 (PDT)
Message-ID: <1376044829269-5766930.post@n5.nabble.com> (raw)
In-Reply-To: <20130807161953.GZ11189@momjian.us>
References: <E1V2XgU-0003tb-Ii@wrigleys.postgresql.org>
	<20130807161953.GZ11189@momjian.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Running postgres 9.1.4 using pgAdmin3 on a macbook air intel OS 10.6

I just had this bug, using comma:

SELECT trim(trailing texte_natif , 'DATEDENAISSANCE' ) FROM CROP

returned the whole field, including the string 'DATEDENAISSANCE', but except
the very first character, the column being called rtrim.

Tryed to chang it to
SELECT trim(trailing texte_natif from 'DATEDENAISSANCE' ) FROM CROP

returned nothing ( as a dummy in postgres I can't say if it was null fields
or empty string...)


CROP.texte_natif is a quite long texte field,in which the STRING
'DATEDENAISSANCE can be present 0 to 3 times, and never before 20th
character

bests
Romain



--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-8335-trim-un-document-behaviour-tp5765221p5766930.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (16+ messages)  latest in thread

Message-ID: <1376044829269-5766930.post@n5.nabble.com>
Permalink:  ../1376044829269-5766930.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1376044829269-5766930.post@n5.nabble.com

 · 

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-bugs@postgresql.org
  Cc: romainbillongrand@yahoo.fr
  Subject: Re: BUG #8335: trim() un-document behaviour
  In-Reply-To: <1376044829269-5766930.post@n5.nabble.com>
  References: <E1V2XgU-0003tb-Ii@wrigleys.postgresql.org> <20130807161953.GZ11189@momjian.us> <1376044829269-5766930.post@n5.nabble.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