diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-13 05:55:54 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-12-13 05:55:54 -0800 |
commit | 1713e8fe16176fa24ece92180f2599f938ec9608 (patch) | |
tree | e0232f5521f22dbf42149442efb220bc91586ba1 /activerecord/test | |
parent | 63f9a7507b0621c2b7eadc05a3f087e0d453c14f (diff) | |
parent | b8569b9337309c2d6c72566a3426994b6da443d7 (diff) | |
download | rails-1713e8fe16176fa24ece92180f2599f938ec9608.tar.gz rails-1713e8fe16176fa24ece92180f2599f938ec9608.tar.bz2 rails-1713e8fe16176fa24ece92180f2599f938ec9608.zip |
Merge pull request #13306 from kassio/master
Fix mysql to support duplicated column names
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/finder_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/finder_test.rb b/activerecord/test/cases/finder_test.rb index 7a00f7fa8f..5125d5df2a 100644 --- a/activerecord/test/cases/finder_test.rb +++ b/activerecord/test/cases/finder_test.rb @@ -855,7 +855,7 @@ class FinderTest < ActiveRecord::TestCase def test_with_limiting_with_custom_select posts = Post.references(:authors).merge( - :includes => :author, :select => ' posts.*, authors.id as "author_id"', + :includes => :author, :select => 'posts.*, authors.id as "author_id"', :limit => 3, :order => 'posts.id' ).to_a assert_equal 3, posts.size |