Re: strpos NOT doing what I'd expect

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ralph Smith <smithrn(at)washington(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: strpos NOT doing what I'd expect
Date: 2008-06-07 02:06:27
Message-ID: 9679.1212804387@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ralph Smith <smithrn(at)washington(dot)edu> writes:
> DECLARE
> achar character := '' ;

Use varchar or text. character is weird about trailing spaces.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message askel 2008-06-07 03:58:26 IN vs EXISTS
Previous Message Tom Lane 2008-06-07 01:47:37 Re: PL/pgSQL graph enumeration function hangs