Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

commit 7e2ddddb303d17adc825ebb691097a93902fa539 1 parent 9921eca
arkadiy kraportov authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation/finder_methods.rb
2  activerecord/lib/active_record/relation/finder_methods.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.