#433 new
Myke Cameron

conditions array with marshaled object types

Reported by Myke Cameron | July 2nd, 2008 @ 04:31 PM

This bug was first noticed when running dm-core 0.9.1. It persisted through an upgrade to 0.9.2 and continued when we upgraded to edge.

In short, it appears that when you try to find records from a model that utilizes the Object property type using the :conditions parameter, it does not include the conditions specified when it generates the sequel query. Ex:

MyModel.all(:conditions => ['number IS NULL OR number <= ?', 25]) # Produces the same sequel query as MyModel.all()
MyModel.all(:number => nil) # This works fine but doesn't help if you need an OR

While trying to sort this out we discovered it worked in some models and not others, and discovered that removing any properties using the Object type would solve the problem.

Comments and changes to this ticket

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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

Shared Ticket Bins

People watching this ticket