diff --git a/lib/sbdb/db.rb b/lib/sbdb/db.rb index ac32b8c..2d82c8f 100644 --- a/lib/sbdb/db.rb +++ b/lib/sbdb/db.rb @@ -77,7 +77,7 @@ module SBDB class Unknown < DB def self.new file, name, *p, &e - db = super( file, name, UNKNOWN, *p) {|db| db.bdb_object.get_type } + dbt = super( file, name, UNKNOWN, *p) {|db| db.bdb_object.get_type } TYPES[dbt] ? TYPES[dbt].new( file, name, *p, &e) : super( file, name, UNKNOWN, *p, &e) end end