Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Can't find if any of the keys in hstore #103

Open
edbond opened this issue Jun 17, 2013 · 0 comments
Open

Can't find if any of the keys in hstore #103

edbond opened this issue Jun 17, 2013 · 0 comments

Comments

@edbond
Copy link

edbond commented Jun 17, 2013

From http://www.postgresql.org/docs/9.0/static/hstore.html:

hstore ?| text[] does hstore contain any of the specified keys? 'a=>1,b=>2'::hstore ?| ARRAY['b','c'] t

I get "ActiveRecord::PreparedStatementInvalid: wrong number of bind variables (1 for 2) in:"
using AR where("data ?| ?")

It would be great to have some special function or workaround.
Thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant