Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"wrong number of bind variables (1 for 2) in .... #18

Open
atif opened this issue Mar 4, 2010 · 2 comments
Open

"wrong number of bind variables (1 for 2) in .... #18

atif opened this issue Mar 4, 2010 · 2 comments

Comments

@atif
Copy link

atif commented Mar 4, 2010

I am facing the above exception. I've defined a composite index that includes a boolean column and it's not working. Does anyone has an idea what's the problem?

@jeremy
Copy link

jeremy commented Mar 4, 2010

You have a find with :conditions somewhere that needs two bind variables, but you're providing one.

Is this in your app, or is it a cache-money issue?

@atif
Copy link
Author

atif commented Mar 5, 2010

I have find with condition containing and between three columns like
:conditions => ["A = ? and B = ? and C = ?", "a", "b", true]
I have defined a combined index like
index [:A, :B, :C]

I'm getting this exception only in case of boolean column which in current case is C.

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

No branches or pull requests

2 participants