Browse files

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

  • Loading branch information...
1 parent 9921eca commit 7e2ddddb303d17adc825ebb691097a93902fa539 @arkadiyk committed Jul 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/relation/finder_methods.rb
View
2 activerecord/lib/active_record/relation/finder_methods.rb
@@ -185,7 +185,7 @@ def exists?(id = nil)
join_dependency = construct_join_dependency_for_association_find
relation = construct_relation_for_association_find(join_dependency)
- relation = relation.except(:select).select("1").limit(1)
+ relation = relation.except(:select).select("1 as o").limit(1)
case id
when Array, Hash

0 comments on commit 7e2dddd

Please sign in to comment.