Issue 1071911: Add support for db 4.3 (original) (raw)

Created on 2004-11-23 17:11 by nijel, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
Python-2.4c1-db43.patch nijel,2004-12-06 11:09
Messages (4)
msg47331 - (view) Author: Michal Čihař (nijel) * Date: 2004-11-23 17:11
Hi, attached patch adds support for db 4.3. It doens't cover almost no new constants (only one that was at least in 4.2), but just allows compiling.
msg47332 - (view) Author: SUZUKI Hisao (suzuki_hisao) Date: 2004-12-04 10:14
Logged In: YES user_id=495142 Your patch works well, except for "has_key()". It results False always. This is because an API of DB has changed slightly: DB->get() returns DB_BUFFER_SMALL instead of ENOMEM now. For Modules/_bsddb.c, we need: @@ -2536,7 +2552,11 @@ err = self->db->get(self->db, txn, &key, &data, 0); MYDB_END_ALLOW_THREADS; FREE_DBT(key); +#if (DBVER >= 43) + return PyInt_FromLong((err == DB_BUFFER_SMALL) | (err == 0)); +#else return PyInt_FromLong((err == ENOMEM)
msg47333 - (view) Author: Michal Čihař (nijel) * Date: 2004-12-06 11:09
Logged In: YES user_id=192186 Yes, you're right I missed that (or better to say: I looked just at compile time errors). Updated patch with included your hunk.
msg47334 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2006-01-25 06:22
Logged In: YES user_id=33168 Greg added support for 4.3, so this is now out of date. Thanks. It would be great if you can check svn.
History
Date User Action Args
2022-04-11 14:56:08 admin set github: 41219
2004-11-23 17:11:45 nijel create