Re: ANY/SOME/ALL with noncommutable operators

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: ANY/SOME/ALL with noncommutable operators
Дата
Msg-id 20080619131132.GB30331@fetter.org
обсуждение исходный текст
Ответ на ANY/SOME/ALL with noncommutable operators  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Thu, Jun 19, 2008 at 11:31:02AM +0200, Peter Eisentraut wrote:
> I can do
> 
> 'abc' LIKE ANY (ARRAY['a%','b%'])
> 
> but not
> 
> ANY (ARRAY['abc', 'def']) LIKE '%a'
> 
> This seems to be a failing in the SQL standard. You can work around
> this by creating your own operators, but maybe there should be a
> general solution, as there are a lot of noncommutable operators and
> this example doesn't seem all that unuseful in practice.
> 
> Comments?

It's been proposed several times before, at least once by Yours Truly,
without objections.  I seem to recall it's a SMOP.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com

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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Vanessa Gonzalez
Дата:
Сообщение: G8: SOS Cambio Climático
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ANY/SOME/ALL with noncommutable operators