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