Skip to content

bpo-20486: Implement Database.Close() method in msilib#4141

Merged
berkerpeksag merged 3 commits intopython:masterfrom
berkerpeksag:20486-msi-db-close
Nov 7, 2017
Merged

bpo-20486: Implement Database.Close() method in msilib#4141
berkerpeksag merged 3 commits intopython:masterfrom
berkerpeksag:20486-msi-db-close

Conversation

@berkerpeksag
Copy link
Copy Markdown
Member

@berkerpeksag berkerpeksag commented Oct 26, 2017

Copy link
Copy Markdown
Member

@zware zware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine as far as I can tell, but I have no real familiarity with the msilb module or MSIs in general.

@berkerpeksag
Copy link
Copy Markdown
Member Author

@zware thanks for the review! I just renamed msiobj_close to msidb_close to make it consistent with the existing naming scheme. I've also test the example in the bug report on my Windows box:

>>> import msilib as m
>>> db = m.OpenDatabase('py33.msi', m.MSIDBOPEN_TRANSACT)
>>> db.Commit()
>>> db2 = m.OpenDatabase('py33.msi', m.MSIDBOPEN_TRANSACT)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
_msi.MSIError: 1: 2203 2: py33.msi 3: -2147287008
>>> db.Close()
>>> db2 = m.OpenDatabase('py33.msi', m.MSIDBOPEN_TRANSACT)

@berkerpeksag berkerpeksag merged commit a935654 into python:master Nov 7, 2017
@berkerpeksag berkerpeksag deleted the 20486-msi-db-close branch November 7, 2017 12:58
embray pushed a commit to embray/cpython that referenced this pull request Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants