Add lib param to database_change event

This commit is contained in:
Dang Mai 2013-01-29 22:06:54 -05:00
parent 03c311696f
commit 5debf9f1f4

View file

@ -979,7 +979,7 @@ class Transaction(object):
the row ID of the last affected row.
"""
cursor = self.lib._connection().execute(statement, subvals)
plugins.send('database_change')
plugins.send('database_change', lib=self.lib)
return cursor.lastrowid
def script(self, statements):