Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix MSSQL and Firebird exists? problem (issue #1623)

  • Loading branch information...
commit 7e2ddddb303d17adc825ebb691097a93902fa539 1 parent 9921eca
arkadiy kraportov authored July 14, 2011
2  activerecord/lib/active_record/relation/finder_methods.rb
@@ -185,7 +185,7 @@ def exists?(id = nil)
185 185
 
186 186
       join_dependency = construct_join_dependency_for_association_find
187 187
       relation = construct_relation_for_association_find(join_dependency)
188  
-      relation = relation.except(:select).select("1").limit(1)
  188
+      relation = relation.except(:select).select("1 as o").limit(1)
189 189
 
190 190
       case id
191 191
       when Array, Hash

0 notes on commit 7e2dddd

Please sign in to comment.
Something went wrong with that request. Please try again.