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
a935654f
Unverified
Kaydet (Commit)
a935654f
authored
Kas 07, 2017
tarafından
Berker Peksag
Kaydeden (comit)
GitHub
Kas 07, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-20486: Implement Database.Close() method in msilib (GH-4141)
üst
3cc4c53a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
8 deletions
+21
-8
msilib.rst
Doc/library/msilib.rst
+6
-0
2017-10-26-23-02-57.bpo-20486.3IdsZ1.rst
...S.d/next/Windows/2017-10-26-23-02-57.bpo-20486.3IdsZ1.rst
+2
-0
_msi.c
PC/_msi.c
+13
-8
No files found.
Doc/library/msilib.rst
Dosyayı görüntüle @
a935654f
...
...
@@ -152,12 +152,18 @@ Database Objects
:
c
:
func
:`
MsiGetSummaryInformation
`.
*
count
*
is
the
maximum
number
of
updated
values
.
..
method
::
Database
.
Close
()
Close
the
database
object
,
through
:
c
:
func
:`
MsiCloseHandle
`.
..
versionadded
::
3.7
..
seealso
::
`
MSIDatabaseOpenView
<
https
://
msdn
.
microsoft
.
com
/
library
?
url
=/
library
/
en
-
us
/
msi
/
setup
/
msidatabaseopenview
.
asp
>`
_
`
MSIDatabaseCommit
<
https
://
msdn
.
microsoft
.
com
/
library
?
url
=/
library
/
en
-
us
/
msi
/
setup
/
msidatabasecommit
.
asp
>`
_
`
MSIGetSummaryInformation
<
https
://
msdn
.
microsoft
.
com
/
library
?
url
=/
library
/
en
-
us
/
msi
/
setup
/
msigetsummaryinformation
.
asp
>`
_
`
MsiCloseHandle
<
https
://
msdn
.
microsoft
.
com
/
en
-
us
/
library
/
windows
/
desktop
/
aa370067
(
v
=
vs
.85
).
aspx
>`
_
..
_view
-
objects
:
...
...
Misc/NEWS.d/next/Windows/2017-10-26-23-02-57.bpo-20486.3IdsZ1.rst
0 → 100644
Dosyayı görüntüle @
a935654f
Implement the ``Database.Close()`` method to help closing MSI database
objects.
PC/_msi.c
Dosyayı görüntüle @
a935654f
...
...
@@ -286,14 +286,6 @@ msiobj_dealloc(msiobj* msidb)
PyObject_Del
(
msidb
);
}
static
PyObject
*
msiobj_close
(
msiobj
*
msidb
,
PyObject
*
args
)
{
MsiCloseHandle
(
msidb
->
h
);
msidb
->
h
=
0
;
Py_RETURN_NONE
;
}
static
PyObject
*
msierror
(
int
status
)
{
...
...
@@ -342,6 +334,17 @@ msierror(int status)
return
NULL
;
}
static
PyObject
*
msidb_close
(
msiobj
*
msidb
,
PyObject
*
args
)
{
int
status
;
if
((
status
=
MsiCloseHandle
(
msidb
->
h
))
!=
ERROR_SUCCESS
)
{
return
msierror
(
status
);
}
msidb
->
h
=
0
;
Py_RETURN_NONE
;
}
/*************************** Record objects **********************/
static
PyObject
*
...
...
@@ -901,6 +904,8 @@ static PyMethodDef db_methods[] = {
PyDoc_STR
(
"Commit() -> None
\n
Wraps MsiDatabaseCommit"
)},
{
"GetSummaryInformation"
,
(
PyCFunction
)
msidb_getsummaryinformation
,
METH_VARARGS
,
PyDoc_STR
(
"GetSummaryInformation(updateCount) -> viewobj
\n
Wraps MsiGetSummaryInformation"
)},
{
"Close"
,
(
PyCFunction
)
msidb_close
,
METH_NOARGS
,
PyDoc_STR
(
"Close() -> None
\n
Wraps MsiCloseHandle"
)},
{
NULL
,
NULL
}
};
...
...
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