diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2007-11-05 02:32:26 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2007-11-05 02:32:26 (GMT) |
commit | ec10a4a402e5b6845b247f688fc157be45414cdd (patch) | |
tree | 99112af225bd76faa84bad94a826406bf77c7065 /Misc | |
parent | 9c466baa014fa32474f338cc153caea8236a0555 (diff) | |
download | cpython-ec10a4a402e5b6845b247f688fc157be45414cdd.zip cpython-ec10a4a402e5b6845b247f688fc157be45414cdd.tar.gz cpython-ec10a4a402e5b6845b247f688fc157be45414cdd.tar.bz2 |
Fixes bug 477182 on pybsddb.sf.net. DB objects now load the flags and
pay attention to them when opening an existing database. This means
that d[] behaves properly even on databases previously created with DB_DUP
or DB_DUPSORT flags to allow duplicate keys.
http://sourceforge.net/tracker/index.php?func=detail&aid=477182&group_id=13900&atid=113900
Do not backport, this bugfix could be considered an API change.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -822,6 +822,14 @@ Extension Modules - Bug #1233: fix bsddb.dbshelve.DBShelf append method to work as intended for RECNO databases. +- pybsddb.sf.net Bug #477182: Load the database flags at database open + time so that opening a database previously created with the DB_DUP or + DB_DUPSORT flag set will keep the proper behavior on subsequent opens. + Specifically: dictionary assignment to a DB object will replace all + values for a given key when the database allows duplicate values. + DB users should use DB.put(k, v) when they want to store duplicates; not + DB[k] = v. + - Bug #1686475: Support stat'ing open files on Windows again. - Patch #1185447: binascii.b2a_qp() now correctly quotes binary characters |