diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2012-06-11 11:41:07 +0900 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2012-06-11 11:41:07 +0900 |
commit | a0363e2ca69c77f420313e9bfd614a13c92ce8bb (patch) | |
tree | 2f087abd1cd6d3073db00e6cd27325d25054f46d /activerecord/lib | |
parent | f48e7676e9b70884c309d3170b7ae8867e4bd252 (diff) | |
download | rails-a0363e2ca69c77f420313e9bfd614a13c92ce8bb.tar.gz rails-a0363e2ca69c77f420313e9bfd614a13c92ce8bb.tar.bz2 rails-a0363e2ca69c77f420313e9bfd614a13c92ce8bb.zip |
Address ORA-00911 errors because of the heading underscore.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/finder_methods.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/finder_methods.rb b/activerecord/lib/active_record/relation/finder_methods.rb index 1de69fce76..c91758265b 100644 --- a/activerecord/lib/active_record/relation/finder_methods.rb +++ b/activerecord/lib/active_record/relation/finder_methods.rb @@ -176,7 +176,7 @@ module ActiveRecord join_dependency = construct_join_dependency_for_association_find relation = construct_relation_for_association_find(join_dependency) - relation = relation.except(:select, :order).select("1 AS _one").limit(1) + relation = relation.except(:select, :order).select("1 AS one").limit(1) case id when Array, Hash |