diff options
author | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2015-05-27 17:53:21 +0000 |
---|---|---|
committer | Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2015-05-27 17:53:21 +0000 |
commit | b1fac4064e8119662bb96eba1fbb9d81de957645 (patch) | |
tree | 217957fae5764cdb7c4b0d48d4fc7328d44bf668 /databases/rubygem-dbi/files/patch-lib-dbi-row.rb | |
parent | - Add LICENSE (diff) |
- Add LICENSE
- Rename patch files and regenerate them with makepatch:
- Update WWW
Notes
Notes:
svn path=/head/; revision=387646
Diffstat (limited to 'databases/rubygem-dbi/files/patch-lib-dbi-row.rb')
-rw-r--r-- | databases/rubygem-dbi/files/patch-lib-dbi-row.rb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/databases/rubygem-dbi/files/patch-lib-dbi-row.rb b/databases/rubygem-dbi/files/patch-lib-dbi-row.rb new file mode 100644 index 000000000000..ebbf499e922c --- /dev/null +++ b/databases/rubygem-dbi/files/patch-lib-dbi-row.rb @@ -0,0 +1,39 @@ +--- lib/dbi/row.rb.orig 2015-05-27 17:33:53 UTC ++++ lib/dbi/row.rb +@@ -209,7 +209,6 @@ module DBI + end + + +- if RUBY_VERSION =~ /^1\.9/ + def __getobj__ + @arr + end +@@ -217,28 +216,6 @@ module DBI + def __setobj__(obj) + @delegate_dc_obj = @arr = obj + end +- else +- # +- # See Object#clone. +- # +- # #clone and #dup here, however, are both deep copies via Marshal. +- # +- def clone +- Marshal.load(Marshal.dump(self)) +- end +- +- def dup +- row = self.class.allocate +- row.instance_variable_set :@column_types, @column_types +- row.instance_variable_set :@convert_types, @convert_types +- row.instance_variable_set :@column_map, @column_map +- row.instance_variable_set :@column_names, @column_names +- # this is the only one we actually dup... +- row.instance_variable_set :@arr, arr = @arr.dup +- row.instance_variable_set :@_dc_obj, arr +- row +- end +- end + + private + |