diff --git a/Changes b/Changes index 7bd27d2..17a7b76 100644 --- a/Changes +++ b/Changes @@ -253,3 +253,10 @@ * compile for 4.3 * BDB::Sequence (not tested) + +--- 0.5.5 + +* store_nil_as_null (see README.en) +* patch bdb_TXN (Thanks akira yamada ) + + diff --git a/README.en b/README.en index 27755f6..813a1be 100644 --- a/README.en +++ b/README.en @@ -28,6 +28,18 @@ ruby extconf.rb --with-db-dir=/home/ts/local +* WARNING + + With bdb >= 0.5.5 `nil' is stored as an empty string (when marshal is not + used). + + Open the database with + + "store_nil_as_null" => true + + if you want the old behavior (`nil' stored as `\000') + + * examples examples/basic.rb simple access method @@ -49,6 +61,7 @@ You can redistribute it and/or modify it under the same term as Ruby. + Guy Decoux diff --git a/bdb.html b/bdb.html index aa61683..46cf6e5 100644 --- a/bdb.html +++ b/bdb.html @@ -14,8 +14,15 @@

BDB

Developers may choose to store data in any of several different storage structures to satisfy the requirements of a particular application. In database terminology, these storage structures and the -code that operates on them are called access methods. -The library includes support for the following access methods:

+code that operates on them are called access methods.

+

...............................................................

+

With bdb >= 0.5.5 nil is stored as an empty string (when marshal is not +used).

+

Open the database with

+
"store_nil_as_null" => true
+

if you want the old behavior (nil stored as `\000')

+

...............................................................

+

The library includes support for the following access methods: