Skip to content
Permalink
Browse files

[dbmanager] Replace DropRasterTable func (deprecated) with DROP TABLE:

…fixes #8521
  • Loading branch information
slarosa committed Sep 1, 2013
1 parent 461fd8f commit 3ac0759b048504037174f48cfc70fb7f8d519cba
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/db_manager/db_plugins/postgis/connector.py
@@ -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)

0 comments on commit 3ac0759

Please sign in to comment.
You can’t perform that action at this time.