Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
024f2de0
Kaydet (Commit)
024f2de0
authored
Ock 20, 2004
tarafından
Gustavo Niemeyer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixing #880531: raise TypeError when trying to use a None key with RECNO
or QUEUE database.
üst
c83dddf7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
_bsddb.c
Modules/_bsddb.c
+7
-0
No files found.
Modules/_bsddb.c
Dosyayı görüntüle @
024f2de0
...
@@ -349,6 +349,13 @@ make_key_dbt(DBObject* self, PyObject* keyobj, DBT* key, int* pflags)
...
@@ -349,6 +349,13 @@ make_key_dbt(DBObject* self, PyObject* keyobj, DBT* key, int* pflags)
CLEAR_DBT
(
*
key
);
CLEAR_DBT
(
*
key
);
if
(
keyobj
==
Py_None
)
{
/* TODO: is None really okay for keys? */
if
(
keyobj
==
Py_None
)
{
/* TODO: is None really okay for keys? */
type
=
_DB_get_type
(
self
);
if
(
type
==
DB_RECNO
||
type
==
DB_QUEUE
)
{
PyErr_SetString
(
PyExc_TypeError
,
"None keys not allowed for Recno and Queue DB's"
);
return
0
;
}
/* no need to do anything, the structure has already been zeroed */
/* no need to do anything, the structure has already been zeroed */
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment