Permalink
Browse files

Merge pull request #12819 from vipulnsward/also_dup_column_types

Also dup `column_types` in AR::Result `initialize_copy`
  • Loading branch information...
2 parents d4587ba + f511eac commit f33ab01b7e5d567b7476578515b2f9ac47ca269a @rafaelfranca rafaelfranca committed Nov 14, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 activerecord/lib/active_record/result.rb
View
7 activerecord/lib/active_record/result.rb
@@ -83,9 +83,10 @@ def last
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

0 comments on commit f33ab01

Please sign in to comment.