pkgsrc/databases/ruby-dbi/patches/patch-lib_dbi_columninfo.rb
taca 8377a141de * Don't use Deprecate but Deprecated of devel/ruby-deprecated package.
* Fix a scheme of updating hash.

Bump PKGREVISION.
2011-08-12 15:58:36 +00:00

15 lines
537 B
Ruby

$NetBSD: patch-lib_dbi_columninfo.rb,v 1.1 2011/08/12 15:58:36 taca Exp $
* Create array of hash's key since hash would be modified in the block.
--- lib/dbi/columninfo.rb.orig 2011-08-09 05:56:50.000000000 +0000
+++ lib/dbi/columninfo.rb
@@ -39,7 +39,7 @@ module DBI
@hash ||= Hash.new
# coerce all strings to symbols
- @hash.each_key do |x|
+ @hash.keys.each do |x|
if x.kind_of? String
sym = x.to_sym
if @hash.has_key? sym