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

This commit is contained in:
Salvatore Larosa 2013-09-01 12:55:10 +02:00
parent 461fd8f2bd
commit 3ac0759b04

View File

@ -614,7 +614,8 @@ class PostGisDBConnector(DBConnector):
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)