#1192 ✓resolved
Peter Brant

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(: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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »