[NOT] (LIKE|ILIKE) (ANY|ALL) (...) - Mailing list pgsql-patches

From Fabien COELHO
Subject [NOT] (LIKE|ILIKE) (ANY|ALL) (...)
Date
Msg-id Pine.LNX.4.58.0403251632220.7217@sablons.cri.ensmp.fr
Whole thread Raw
Responses Re: [NOT] (LIKE|ILIKE) (ANY|ALL) (...)
List pgsql-patches
Dear Patchers,

Please find attached a patch which allows "LIKE/ILIKE/NOT LIKE/NOT ILIKE"
as operators for ANY/SOME/ALL constructs.

SELECT 'foo' LIKE ANY (ARRAY['%a','%o']);

It should also fix some other places where a "~~" operator was allowed,
but not the LIKE operator in the very same place.

However, this patch does not address "SIMILAR TO", as its "hacked"
implementation does not fit the already existing structures for ANY/ALL.
I've added a comment about this in the regression tests.

It validates for me against current CVS head.

Have a nice day,

--
Fabien Coelho.

Attachment

pgsql-patches by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: installdir patch for win32
Next
From: "Magnus Hagander"
Date:
Subject: Re: APC/socket fix (final?)