Inconsistency with LIKE and SIMILAR TO - Mailing list pgsql-general

From Rosiński Krzysztof 2 - Detal TP
Subject Inconsistency with LIKE and SIMILAR TO
Date
Msg-id 49857FC121242345B2EFF3AAE4DA1B8E013AD608@OPEXCN10.tp.gk.corp.tepenet
Whole thread Raw
Responses Re: Inconsistency with LIKE and SIMILAR TO
Re: Inconsistency with LIKE and SIMILAR TO
List pgsql-general
Hello.

Operators LIKE and SIMILAR TO work differently
This query works ok.:

SELECT *
  FROM www.test
  WHERE expr like any (ARRAY['a','b']);

But this not work:

SELECT *
  FROM www.test
  WHERE expr similar to any (ARRAY['a','b']);

ERROR:  syntax error at or near "any"
LINE 3:   WHERE expr similar to any (ARRAY['a','b']);

Is this shouldn't works ?


pasman

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Does enterprisedb.com down?
Next
From: Thom Brown
Date:
Subject: Re: Inconsistency with LIKE and SIMILAR TO