Re: regexp searching in arrays not working? - Mailing list pgsql-general

From David Fetter
Subject Re: regexp searching in arrays not working?
Date
Msg-id 20070623021328.GA29887@fetter.org
Whole thread Raw
In response to Re: regexp searching in arrays not working?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: regexp searching in arrays not working?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
On Tue, Jun 19, 2007 at 07:36:02PM -0400, Tom Lane wrote:
> "Rhys Stewart" <rhys.stewart@gmail.com> writes:
> > Is regex searching not functioning (as i expect it to?)
>
> ~ expects the pattern on the right, not the left.  So it's taking your
> array entries as patterns, which don't match the data 'Trans'.
>
> Since there's no "(array) ANY op scalar" syntax,

Why isn't there?  Is it forbidden by the SQL standard?

Cheers,
D
--
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!
Consider donating to PostgreSQL: http://www.postgresql.org/about/donate

pgsql-general by date:

Previous
From: Naz Gassiep
Date:
Subject: Re: Proposed Feature
Next
From: Tom Lane
Date:
Subject: Re: regexp searching in arrays not working?