Merge pull request #32862 from elpaso/bugfix-gh32808-db-manager-pg-renametable

Fix DB manager PG rename table
This commit is contained in:
Alessandro Pasotti 2019-11-14 14:30:49 +01:00 committed by GitHub
commit 852d6cdc73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -746,7 +746,7 @@ class PostGisDBConnector(DBConnector):
sql = u"TRUNCATE %s" % self.quoteId(table)
self._execute_and_commit(sql)
def renamesTable(self, table, new_table):
def renameTable(self, table, new_table):
"""Renames a table in database """
schema, tablename = self.getSchemaTableName(table)
if new_table == tablename: