
Conditions with no bind parameters are dropped
Reported by Peter Brant | February 3rd, 2010 @ 02:53 PM
Conditions with no bind parameters are silently dropped (e.g.
MyModel.all(:conditions => [ "EXISTS(SELECT ...)" ])
will behave like
MyModel.all
but
MyModel.all(:conditions => [ "...", 1 ]
works fine.
This is a regression relative to 0.10.1.
It looks like the offending commit is
commit 75bfa35c060a736db31756d3c06f18cc82ec68d8
Author: Dan Kubb dan.kubb@gmail.com
Date: Tue Nov 3 19:08:30 2009 -0800
Simplified SQL query negation
Comments and changes to this ticket
-
Dan Kubb (dkubb) February 4th, 2010 @ 12:21 AM
- State changed from new to unconfirmed
- Assigned user cleared.
-
Dan Kubb (dkubb) May 21st, 2010 @ 02:47 PM
- State changed from unconfirmed to resolved
- Assigned user set to Dan Kubb (dkubb)
I can confirm this is resolved on edge DM, as well as in 1.0.0 RC2.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »