On Aug 23, 2010, at 11:24 PM, Joe Conway wrote:

> Maybe something like this?
> 
> select cmp_ok(a,b,c)
> from
> (
>    values('1.2.2'::varchar,  '='::text, '1.2.2'::varchar),
>          ('1.2.23', '=', '1.2.23'),
>          ('1.2.42', '=', '1.2.32')
> ) as ss(a, b, c);
> cmp_ok
> --------
> t
> t
> f
> (3 rows)

Yes, exactly what I wanted. I knew I was missing something subtle (I had too 
many parens when I did it). Thanks Joe!

Best,

David


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

Reply via email to