Skip to content

Commit

Permalink
[dbmanager] Replace DropRasterTable func (deprecated) with DROP TABLE:
Browse files Browse the repository at this point in the history
…fixes #8521
  • Loading branch information
slarosa committed Sep 1, 2013
1 parent 461fd8f commit 3ac0759
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/db_manager/db_plugins/postgis/connector.py
Expand Up @@ -614,7 +614,8 @@ def deleteTable(self, table):
if self.isVectorTable(table):
sql = u"SELECT DropGeometryTable(%s%s)" % (schema_part, self.quoteString(tablename))
elif self.isRasterTable(table):
sql = u"SELECT DropRasterTable(%s%s)" % (schema_part, self.quoteString(tablename))
## Fix #8521: delete raster table and references from raster_columns table
sql = u"DROP TABLE %s" % self.quoteId(table)
else:
sql = u"DROP TABLE %s" % self.quoteId(table)
self._execute_and_commit(sql)
Expand Down

0 comments on commit 3ac0759

Please sign in to comment.