Skip to content

Commit 3ac0759

Browse files
committed
[dbmanager] Replace DropRasterTable func (deprecated) with DROP TABLE: fixes #8521
1 parent 461fd8f commit 3ac0759

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/plugins/db_manager/db_plugins/postgis/connector.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,8 @@ def deleteTable(self, table):
614614
if self.isVectorTable(table):
615615
sql = u"SELECT DropGeometryTable(%s%s)" % (schema_part, self.quoteString(tablename))
616616
elif self.isRasterTable(table):
617-
sql = u"SELECT DropRasterTable(%s%s)" % (schema_part, self.quoteString(tablename))
617+
## Fix #8521: delete raster table and references from raster_columns table
618+
sql = u"DROP TABLE %s" % self.quoteId(table)
618619
else:
619620
sql = u"DROP TABLE %s" % self.quoteId(table)
620621
self._execute_and_commit(sql)

0 commit comments

Comments
 (0)