| От | Tom Lane |
|---|---|
| Тема | Re: ANY/SOME/ALL with noncommutable operators |
| Дата | |
| Msg-id | 11634.1213884491@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | ANY/SOME/ALL with noncommutable operators (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: ANY/SOME/ALL with noncommutable operators
|
| Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes:
> 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?
Making the commutator operator where you need it *is* a general solution.
I think there's a syntactic-ambiguity reason why the spec is like that...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера