summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
Commit message (Collapse)AuthorAgeFilesLines
* * fix failing test_recno.py - backport from trunk.Gregory P. Smith2007-11-071-5/+5
| | | | * bump _bsddb patch version number.
* Backport r58757, r58758, r58759.Gregory P. Smith2007-11-012-7/+23
| | | | | | | | | | | | | | | | | | | | Undoes incorrect dbtables fix and errant strdup introduced as described below: r58757 | gregory.p.smith | 2007-11-01 14:08:14 -0700 (Thu, 01 Nov 2007) | 4 lines Fix bug introduced in revision 58385. Database keys could no longer have NULL bytes in them. Replace the errant strdup with a malloc+memcpy. Adds a unit test for the correct behavior. r58758 | gregory.p.smith | 2007-11-01 14:15:36 -0700 (Thu, 01 Nov 2007) | 3 lines Undo revision 58533 58534 fixes. Those were a workaround for a problem introduced by 58385. r58759 | gregory.p.smith | 2007-11-01 14:17:47 -0700 (Thu, 01 Nov 2007) | 2 lines false "fix" undone as correct problem was found and fixed.
* Backport 58539: squelch the warning that this test is intended to raise.Gregory P. Smith2007-10-191-2/+7
|
* Backport 58532, 58533, 58534:Gregory P. Smith2007-10-182-17/+13
| | | | | | | | | - Fix bsddb.dbtables: Don't randomly corrupt newly inserted rows by picking a rowid string with null bytes in it. Such rows could not later be deleted, modified or individually selected. Existing bsdTableDb databases created with such rows are out of luck. - Use mkdtemp for the test_dbtables test database environment and clean it up afterwards using shutil.rmtree.
* Backport 58450: fix uncollectable reference leak in bsddb.db.DBShelf.appendGregory P. Smith2007-10-131-2/+1
|
* Merge trunk 58434:Gregory P. Smith2007-10-122-23/+78
| | | | | | Fixes http://bugs.python.org/issue1233 - bsddb.dbshelve.DBShelf.append was useless due to inverted logic. Also adds a test case for RECNO dbs to test_dbshelve.
* Backport 58385 from trunk: fix a double free bug in the _bsddb moduleGregory P. Smith2007-10-091-0/+20
| | | | on DBCursor.get (and a friends) when passing in a string key.
* backport of r58023 to fix unit test suite issue1112 on windowsGregory P. Smith2007-09-061-9/+22
|
* backport of r57378 to fix bug 1725856Gregory P. Smith2007-08-241-0/+4
|
* Back port of r57286 from py3k and trunkGregory P. Smith2007-08-231-1/+9
| | | | | | | | ------------------------------------------------------------------------ r57286 | gregory.p.smith | 2007-08-22 14:32:34 -0700 (Wed, 22 Aug 2007) | 3 lines stop leaving log.0000001 __db.00* and xxx.db turds in developer sandboxes when bsddb3 tests are run.
* support linking the _bsddb extension module against BerkeleyDB 4.5Gregory P. Smith2007-01-052-3/+4
| | | | [backport of r53252]
* Oops, convert tabs to spacesNeal Norwitz2006-11-211-2/+2
|
* Backport of 52811:Neal Norwitz2006-11-211-0/+4
| | | | | | | | | Bug #1599782: Fix segfault on bsddb.db.DB().type(). The problem is that _DB_get_type() can't be called without the GIL because it calls a bunch of PyErr_* APIs when an error occurs. There were no other cases in this file that it was called without the GIL. Removing the BEGIN/END THREAD around _DB_get_type() made everything work.
* This was found by Guido AFAIK on p3yk (sic) branch.Neal Norwitz2006-09-051-1/+1
|
* - pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrenameGregory P. Smith2006-07-281-6/+31
| | | | | | | methods now allow their database parameter to be None as the sleepycat API allows. Also adds an appropriate test case for DBEnv.dbrename and dbremove.
* - bsddb: multithreaded DB access using the simple bsddb module interfaceGregory P. Smith2006-06-152-31/+39
| | | | | | now works reliably. It has been updated to use automatic BerkeleyDB deadlock detection and the bsddb.dbutils.DeadlockWrap wrapper to retry database calls that would previously deadlock. [SF python bug #775414]
* Fix errors found by pycheckerNeal Norwitz2006-06-112-3/+9
|
* pasted set_lk_detect line in wrong spot in previous commit. fixed. passes ↵Gregory P. Smith2006-06-081-1/+1
| | | | tests this time.
* * Turn the deadlock situation described in SF bug #775414 into aGregory P. Smith2006-06-082-0/+11
| | | | | DBDeadLockError exception. * add the test case for my previous dbtables commit.
* - bsddb: the bsddb.dbtables Modify method now raises the proper error andGregory P. Smith2006-06-081-18/+25
| | | | | | | | | aborts the db transaction safely when a modifier callback fails. Fixes SF python patch/bug #1408584. Also cleans up the bsddb.dbtables docstrings since thats the only documentation that exists for that unadvertised module. (people really should really just use sqlite3)
* Add missing svn:eol-style property to text files.Tim Peters2006-06-051-65/+65
|
* * fix DBCursor.pget() bug with keyword argument names when no data= isGregory P. Smith2006-06-052-0/+66
| | | | supplied [SF pybsddb bug #1477863]
* Whitespace normalization.Tim Peters2006-06-051-3/+2
|
* forgot to add this file in previous commitGregory P. Smith2006-06-051-0/+112
|
* * add support for DBSequence objects [patch #1466734]Gregory P. Smith2006-06-052-6/+42
|
* * support DBEnv.lsn_reset() method on BerkeleyDB >= 4.4 [patch #1494902]Gregory P. Smith2006-06-051-2/+8
|
* Whitespace normalization.Tim Peters2006-06-051-2/+2
|
* * support DBEnv.log_stat() method on BerkeleyDB >= 4.0 [patch #1494885]Gregory P. Smith2006-06-052-0/+10
|
* bugfix: when log_archive was called with the DB_ARCH_REMOVE flag presentGregory P. Smith2006-06-051-0/+3
| | | | | | | in BerkeleyDB >= 4.2 it tried to construct a list out of an uninitialized char **log_list. feature: export the DB_ARCH_REMOVE flag by name in the module on BerkeleyDB >= 4.2.
* BaseThreadedTestCase.setup(): stop special-casing WindowsError.Tim Peters2006-05-111-2/+0
| | | | | Rev 45964 fiddled with WindowsError, and broke test_bsddb3 on all the Windows buildbot slaves as a result. This should repair it.
* Handle ERROR_ALREADY_EXISTS.Martin v. Löwis2006-05-061-0/+8
|
* Fixes bug #1117761Gregory P. Smith2006-04-121-7/+9
| | | | | | | | | bsddb.*open() methods cachesize parameter wouldn't work (raised an internal bsddb.db exception when it was given). The set_cachesize call needed to be moved from the DB object to the DBEnv since the env was introduced to allow for threading. (will backport to 2.4)
* Closes bug #1149413Gregory P. Smith2006-04-121-1/+1
| | | | | | | Using None for a filename with the 'n' flag when calling bsddb.btopen would cause an error while checking if the file None existed. error not likely to be seen as anyone using None for a filename would likely use the 'c' flag in the first place.
* Fix bsddb.db.DBError derived exceptions so they can be unpickled.Gregory P. Smith2006-04-082-0/+76
| | | | | Also adds some backwards compatibility when compiling _bsddb.c on earlier python versions (needed for pybsddb).
* Plug the last 657 referenceleaks in test_bsddb3: a circular referenceThomas Wouters2006-03-121-0/+5
| | | | | | | between a TestCase instance, the database it opened (or a cursor to a database) and a bound method as a registered database callback, and a lack of GC-handling in bsddb caused the TestCases to linger. Fix the test, for now, as backward compatibility makes adding GC to bsddb annoying.
* Whitespace normalization.Tim Peters2006-02-201-1/+1
|
* Bug #1210377: close bsddb cursor correctly after NotFoundError.Georg Brandl2006-02-201-1/+4
|
* Add a unit test for bug fix #1396678.Georg Brandl2006-02-192-6/+11
|
* Bug #1396678: a closed bsddb.DB raises AttributeError on repr().Georg Brandl2006-02-191-1/+4
| | | | It now returns "{}". Is that the correct solution?
* fix test import for use in standalone pybsddb project bsddb3 module as wellGregory P. Smith2006-01-291-1/+6
| | | | as python builtin bsddb.
* Add wrapper for DBEnv.set_tx_timeout method to allow time based DB_RECOVERGregory P. Smith2006-01-272-0/+5
| | | | (test cases and dbobj wrapping)
* Fix bug #1413192, fix seg fault in bsddb if a txn was deleted before the env.Neal Norwitz2006-01-252-0/+22
| | | | Will backport.
* Get BSD DB working most for version 3.2Neal Norwitz2005-10-201-0/+2
|
* fix import to work with either module name.Gregory P. Smith2005-06-091-1/+6
|
* Tools/scripts/reindent.py _is_ your friendAnthony Baxter2005-06-084-116/+116
|
* fix more Errors (not Failures) when run using BerkeleyDB <= 4.0Gregory P. Smith2005-06-061-4/+13
|
* fix Errors (not Failures) in test cases when running with BerkeleyDB<4.2Gregory P. Smith2005-06-061-32/+61
|
* make the tests that expect uncatchable exceptions from a callback testGregory P. Smith2005-06-061-19/+48
| | | | | | for them in a roundabout way (catching and parsing stderr) keeps test output clean.
* test case for pybsddb SF bug id 1215432Gregory P. Smith2005-06-061-0/+50
|
* test DB.associate using transactions. somewhat related to SF pybsddbGregory P. Smith2005-06-061-12/+46
| | | | bug #1215432