Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > ANY/SOME/ALL wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 9540 of 10966
Post > Topic >>

ANY/SOME/ALL with noncommutable operators

by peter_e@[EMAIL PROTECTED] (Peter Eisentraut) Jun 19, 2008 at 11:31 AM

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?

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 4 Posts in Topic:
ANY/SOME/ALL with noncommutable operators
peter_e@[EMAIL PROTECTED]  2008-06-19 11:31:02 
Re: ANY/SOME/ALL with noncommutable operators
david@[EMAIL PROTECTED]   2008-06-19 06:11:32 
Re: ANY/SOME/ALL with noncommutable operators
tgl@[EMAIL PROTECTED] (T  2008-06-19 10:08:11 
Re: ANY/SOME/ALL with noncommutable operators
peter_e@[EMAIL PROTECTED]  2008-06-19 16:26:58 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 11:47:34 CST 2008.