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