Do not call begin in updatedb after syncing (#23934)
Do not call begin in updatedb after syncing as commit does it already. Signed-off-by: Xiaoguang Sun <sunxiaoguang@gmail.com>
This commit is contained in:
parent
77f04c9fc4
commit
68d4a5ad82
2 changed files with 2 additions and 2 deletions
|
|
@ -440,7 +440,7 @@ class MariaDBDatabase(MariaDBConnectionUtil, MariaDBExceptionUtil, Database):
|
|||
|
||||
self.commit()
|
||||
db_table.sync()
|
||||
self.begin()
|
||||
self.commit()
|
||||
|
||||
def get_database_list(self):
|
||||
return self.sql("SHOW DATABASES", pluck=True)
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ class PostgresDatabase(PostgresExceptionUtil, Database):
|
|||
|
||||
self.commit()
|
||||
db_table.sync()
|
||||
self.begin()
|
||||
self.commit()
|
||||
|
||||
@staticmethod
|
||||
def get_on_duplicate_update(key="name"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue