[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

bug with sdbm?

snacktime

10/26/2006 7:34:00 AM

I found that when trying to store marshalled data in sdbm, it croaks
with the message "sdbm_store failed (SDBMError)" when the marshalled
object contains binary data, such as a compressed file. dbm and gdbm
work fine, as does berkeleydb. This is on Freebsd.

Chris

1 Answer

Vincent Fourmond

10/26/2006 11:20:00 AM

0

snacktime wrote:
> I found that when trying to store marshalled data in sdbm, it croaks
> with the message "sdbm_store failed (SDBMError)" when the marshalled
> object contains binary data, such as a compressed file. dbm and gdbm
> work fine, as does berkeleydb.

Quoting from Ruby in a Nutshell, page 152:

SDBM:

Public domain implementation of DMB. HAs the same interface as DBM. Runs
almost anywhere but has inferior performance and data-size limitations
compared to the other DBMs...

Looks like you're hitting those limitations.

Vince

--
RiaN is your friend and ally