This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add support for db 4.3
Type: Stage:
Components: Extension Modules Versions: Python 2.4
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: nnorwitz Nosy List: nijel, nnorwitz, suzuki_hisao
Priority: normal Keywords: patch

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) || (err == 0));
+#endif
 }
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:08adminsetgithub: 41219
2004-11-23 17:11:45nijelcreate