unshift/push bugfix
This commit is contained in:
parent
7b36d00f29
commit
5f6a7d0038
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue