mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[dbmanager] Replace DropRasterTable func (deprecated) with DROP TABLE: fixes #8521
This commit is contained in:
parent
461fd8f2bd
commit
3ac0759b04
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user