unshift/push bugfix

This commit is contained in:
Denis Knauf 2010-02-22 16:36:36 +01:00
parent 7b36d00f29
commit 5f6a7d0038

View file

@ -110,7 +110,7 @@ module SBDB
end
def push v
put nil, nil, v, Bdb::DB_APPEND
@db.put nil, nil, v, Bdb::DB_APPEND
end
end
Array = Recno
@ -130,11 +130,11 @@ module SBDB
end
def unshift
get nil, nil, nil, Bdb::DB_CONSUME
@db.get nil, nil, nil, Bdb::DB_CONSUME
end
def push v
put nil, nil, v, Bdb::DB_APPEND
@db.put nil, nil, v, Bdb::DB_APPEND
end
end
TYPES[DB::QUEUE] = Queue