summaryrefslogtreecommitdiffstats
path: root/Modules/_bsddb.c
Commit message (Collapse)AuthorAgeFilesLines
* Issue #9675: Final touchJesus Cea2010-11-081-2/+4
|
* Issue #9675: better error handling in bsddbJesus Cea2010-11-051-2/+15
|
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-173/+173
|
* pybsddb 4.8.4 integration. Please, comment in issue #8156Jesus Cea2010-03-221-237/+2643
|
* - Issue #6949: Allow the _bsddb extension to be built with db-4.8.x.Matthias Klose2010-03-151-3/+26
|
* #7808: Fix reference leaks in _bsddb and related tests.Florent Xicluna2010-03-011-3/+4
|
* Bugfix for issue3885 and 'DB.verify()' crash.Jesus Cea2008-09-231-27/+86
| | | | Reviewed by Nick Coghlan.
* Fix some leaks - Neal NorwitzJesus Cea2008-09-031-3/+5
|
* Update bsddb code to version 4.7.3pre2. This code shouldJesus Cea2008-08-311-35/+113
| | | | | | be compatible with Python 3.0, also. http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.3
* bsddb module updated to version 4.7.2devel9.Jesus Cea2008-07-231-525/+816
| | | | | | | | | | | | | This patch publishes the work done until now for Python 3.0 compatibility. Still a lot to be done. When possible, we use 3.0 features in Python 2.6, easing development and testing, and exposing internal changes to a wider audience, for better test coverage. Some mode details: http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.2
* Define macros so that this still compiles on Python prior to r63675.Gregory P. Smith2008-05-261-0/+11
|
* Renamed PyString to PyBytesChristian Heimes2008-05-261-14/+14
|
* bsddb module updated to version 4.7.0Jesus Cea2008-05-221-5/+84
|
* issue2858: Fix potential memory corruption when bsddb.db.DBEnv.lock_getGregory P. Smith2008-05-171-21/+22
| | | | | and other bsddb.db object constructors raised an exception. Debugging & patch by Neal Norowitz.
* bsddb module updated to version 4.6.4Jesus Cea2008-05-131-292/+1398
|
* Fix typo.Martin v. Löwis2008-04-241-1/+1
|
* Merge this fix from the pybsddb tree:Gregory P. Smith2008-02-031-2/+6
| | | | | | | r293 | jcea | 2008-01-31 01:08:19 -0800 (Thu, 31 Jan 2008) | 4 lines Solved memory leak when using cursors with databases without environment.
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-191-15/+15
| | | | Py_REFCNT. Macros for b/w compatibility are available.
* * db->get_types is only available in BerkeleyDB >= 4.2Gregory P. Smith2007-11-051-0/+7
| | | | * get compiling with older versions of python again for a stand alone release.
* Add the bsddb.db.DBEnv.lock_id_free method.Gregory P. Smith2007-11-051-0/+21
| | | | Improve test_lock's tempdir creation and cleanup.
* Fixes bug 477182 on pybsddb.sf.net. DB objects now load the flags andGregory P. Smith2007-11-051-15/+2
| | | | | | | | | | 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.
* Fix bug introduced in revision 58385. Database keys could no longerGregory P. Smith2007-11-011-1/+7
| | | | | have NULL bytes in them. Replace the errant strdup with a malloc+memcpy. Adds a unit test for the correct behavior.
* Get this module to compile with bsddb versions prior to 4.3Neal Norwitz2007-10-121-0/+2
|
* Get rid of compiler warning about retval being used (returned) withoutNeal Norwitz2007-10-121-1/+1
| | | | being initialized. (gcc warning and Coverity 202)
* Fix a double free when positioning a database cursor to a non-existantGregory P. Smith2007-10-091-1/+13
| | | | | | string key (and probably a few other situations with string keys). This was reported with a patch as pybsddb sourceforge bug 1708868 by jjjhhhlll at gmail.
* Splits Modules/_bsddb.c up into bsddb.h and _bsddb.c and adds a C APIGregory P. Smith2007-10-091-188/+25
| | | | | | | | | | | object available as bsddb.db.api. This is based on the patch submitted by Duncan Grisby here: http://sourceforge.net/tracker/index.php?func=detail&aid=1551895&group_id=13900&atid=313900 See this thread for additional info: http://sourceforge.net/mailarchive/forum.php?thread_name=E1GAVDK-0002rk-Iw%40apasphere.com&forum_name=pybsddb-users It also cleans up the code a little by removing some ifdef/endifs for python prior to 2.1 and for unsupported Berkeley DB <= 3.2.
* Stab in the dark attempt to fix the test_bsddb3 failure on sparc and S-390Gregory P. Smith2007-10-061-1/+7
| | | | ubuntu buildbots.
* email address updateGregory P. Smith2007-09-091-4/+4
|
* PEP 3123: Provide forward compatibility with Python 3.0, while keepingMartin v. Löwis2007-07-211-14/+14
| | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
* Backout the original 'fix' to 1721309 which had no effect.Neal Norwitz2007-06-031-5/+9
| | | | | | | | | | | Different versions of Berkeley DB handle this differently. The comments and bug report should have the details. Memory is allocated in 4.4 (and presumably earlier), but not in 4.5. Thus 4.5 has the free error, but not earlier versions. Mostly update comments, plus make the free conditional. This fix was already applied to the 2.5 branch.
* Whoops, need to pay attention to those test failures.Neal Norwitz2007-05-191-1/+1
| | | | Move the clear to *before* the first use, not after.
* Clear data so random memory does not get freed. Will backport.Neal Norwitz2007-05-191-0/+1
|
* Accomodate 64 bit time_t in the _bsddb module.Kristján Valur Jónsson2007-04-261-1/+21
|
* bump module version to match supported berkeleydb versionGregory P. Smith2007-01-051-1/+1
|
* Support linking of the bsddb module against BerkeleyDB 4.5.xGregory P. Smith2007-01-051-0/+8
| | | | (will backport to 2.5)
* Bug #1599782: Fix segfault on bsddb.db.DB().type().Neal Norwitz2006-11-211-2/+0
| | | | | | | | | 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. Will backport.
* Fixes a bug with bsddb.DB.stat where the flags and txn keywordGregory P. Smith2006-09-191-2/+2
| | | | | | arguments are transposed. (reported by Louis Zechtzer) ..already committed to release24-maint ..needs committing to release25-maint
* Handle malloc and fopen failures more gracefully.Neal Norwitz2006-08-131-2/+8
| | | | Klocwork 180-181
* - pybsddb Bug #1527939: bsddb module DBEnv dbremove and dbrenameGregory P. Smith2006-07-281-3/+3
| | | | | | | 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.
* Ensure we don't write beyond errText. I think I got this right, butNeal Norwitz2006-07-231-10/+19
| | | | | | | | | it definitely could use some review to ensure I'm not off by one and there's no possible overflow/wrap-around of bytes_left. Reported by Klocwork #1. Fix a problem if there is a failure allocating self->db. Found with failmalloc.
* Fix memory leak reported by valgrind while running test_subprocessNeal Norwitz2006-06-171-0/+2
|
* Get rid of function pointer cast.Martin v. Löwis2006-06-121-3/+3
|
* Cleanup Py_ssize_t a little (get rid of second #ifdef)Neal Norwitz2006-06-121-5/+2
|
* Fix Coverity # 146. newDBSequenceObject would deref dbobj, so it can't be NULL.Neal Norwitz2006-06-111-4/+2
| | | | | We know it's not NULL from the ParseTuple and DbObject_Check will verify it's not NULL.
* BSequence_set_range(): Rev 46688 ("Fix a bunch ofTim Peters2006-06-061-1/+1
| | | | | | parameter strings") changed this function's signature seemingly by mistake, which is causing buildbots to fail test_bsddb3. Restored the pre-46688 signature.
* Fix a bunch of parameter stringsNeal Norwitz2006-06-061-7/+7
|
* - bsddb: the __len__ method of a DB object has been fixed to return correctGregory P. Smith2006-06-051-6/+17
| | | | | results. It could previously incorrectly return 0 in some cases. Fixes SF bug 1493322 (pybsddb bug 1184012).
* * fix DBCursor.pget() bug with keyword argument names when no data= isGregory P. Smith2006-06-051-4/+4
| | | | supplied [SF pybsddb bug #1477863]
* * add support for DBSequence objects [patch #1466734]Gregory P. Smith2006-06-051-6/+455
|
* * support DBEnv.lsn_reset() method on BerkeleyDB >= 4.4 [patch #1494902]Gregory P. Smith2006-06-051-0/+25
|