<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -265,12 +265,7 @@ module DataMapper
             command = connection.create_command(sql)
             command.set_types(properties.map { |property| property.primitive })
 
-            #Weird looking but necessary - we switch all the nil parameters to IS NULL or IS NOT NULL
-            #so they need to be stripped out of the parameter array that is passed down to the 
-            #command.execute_reader call
-            parameters.delete_if { |parm| parm.nil? }
-
-            reader = command.execute_reader(*parameters)
+            reader = command.execute_reader(*parameters.compact)
 
             while(reader.next!)
               set.load(reader.values, do_reload)</diff>
      <filename>lib/data_mapper/adapters/data_objects_adapter.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7eb18f08d1a15effc2b35e4b3d60853756daf626</id>
    </parent>
  </parents>
  <author>
    <name>John W Higgins</name>
    <email>john@wishVPS.com</email>
  </author>
  <url>http://github.com/sam/dm-core/commit/fd483845718f49520842434842bb3cbfbda1f39a</url>
  <id>fd483845718f49520842434842bb3cbfbda1f39a</id>
  <committed-date>2008-05-11T22:27:45-07:00</committed-date>
  <authored-date>2008-05-11T22:27:45-07:00</authored-date>
  <message>Lets make the fix a little less brute force (ticket 275)</message>
  <tree>8d628c7f513e62140ff30f40ac385b9558de0c81</tree>
  <committer>
    <name>John W Higgins</name>
    <email>john@wishVPS.com</email>
  </committer>
</commit>
