Permalink
Browse files

Also dup `column_types` in AR::Result `initialize_copy`

  • Loading branch information...
1 parent 3cc64df commit f511eac2c1c6921368f1d8c2a1af1d3319204232 @vipulnsward vipulnsward committed Nov 9, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −3 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 f511eac

Please sign in to comment.