diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-14 12:42:23 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-11-14 12:42:23 -0800 |
commit | f33ab01b7e5d567b7476578515b2f9ac47ca269a (patch) | |
tree | 6b212f2222e59519f0d80758f5d5500b39afb8b6 /activerecord | |
parent | d4587bab2403bcc8a0c9253e798d984d2fbf1bf5 (diff) | |
parent | f511eac2c1c6921368f1d8c2a1af1d3319204232 (diff) | |
download | rails-f33ab01b7e5d567b7476578515b2f9ac47ca269a.tar.gz rails-f33ab01b7e5d567b7476578515b2f9ac47ca269a.tar.bz2 rails-f33ab01b7e5d567b7476578515b2f9ac47ca269a.zip |
Merge pull request #12819 from vipulnsward/also_dup_column_types
Also dup `column_types` in AR::Result `initialize_copy`
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/result.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/result.rb b/activerecord/lib/active_record/result.rb index 1dc3bf3f12..469451e2f4 100644 --- a/activerecord/lib/active_record/result.rb +++ b/activerecord/lib/active_record/result.rb @@ -83,9 +83,10 @@ module ActiveRecord end def initialize_copy(other) - @columns = columns.dup - @rows = rows.dup - @hash_rows = nil + @columns = columns.dup + @rows = rows.dup + @column_types = column_types.dup + @hash_rows = nil end private |