Re: strpos NOT doing what I'd expect - Mailing list pgsql-general

From Tom Lane
Subject Re: strpos NOT doing what I'd expect
Date
Msg-id 9679.1212804387@sss.pgh.pa.us
Whole thread Raw
In response to strpos NOT doing what I'd expect  (Ralph Smith <smithrn@washington.edu>)
List pgsql-general
Ralph Smith <smithrn@washington.edu> writes:
> DECLARE
>    achar  character := '' ;

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

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: PL/pgSQL graph enumeration function hangs
Next
From: edfialk
Date:
Subject: hopefully a brain teaser, can't quite figure out query