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.

Author gentoo90
Recipients gentoo90
Date 2014-02-02.15:37:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391355449.68.0.999858284587.issue20486@psf.upfronthosting.co.za>
In-reply-to
Content
In Python 2.7.6 can't find any way to close MSI database after finish working with it.
As a result database is locked and can't be opened by any other application until Python process is finished.

    import msilib
    db = msilib.OpenDatabase('test.msi', msilib.MSIDBOPEN_TRANSACT)
    view = db.OpenView("SELECT File, Component_, FileName FROM File")
    view.Execute(None)
    r1 = view.Fetch()
    r1.SetString(3,"test.txt")
    view.Modify(msilib.MSIMODIFY_UPDATE, r1)
    view.Close()
    db.Commit()
    del db
    db2 = msilib.OpenDatabase('test.msi', msilib.MSIDBOPEN_TRANSACT)

    MSIError: 1: 2203 2: test.msi 3: -2147287008
History
Date User Action Args
2014-02-02 15:37:29gentoo90setrecipients: + gentoo90
2014-02-02 15:37:29gentoo90setmessageid: <1391355449.68.0.999858284587.issue20486@psf.upfronthosting.co.za>
2014-02-02 15:37:29gentoo90linkissue20486 messages
2014-02-02 15:37:29gentoo90create