Skip to content

Commit

Permalink
[db manager] Fix delete raster layer in GeoPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
agiudiceandrea authored and nyalldawson committed Jun 24, 2024
1 parent de3a52f commit 8c94cbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/db_manager/db_plugins/gpkg/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,9 @@ def createTable(self, table, field_defs, pkey):
def deleteTable(self, table):
"""Deletes table from the database """
if self.isRasterTable(table):
return False
sql = "DROP TABLE {}".format(self.quoteId(table))
self._execute_and_commit(sql)
return True

_, tablename = self.getSchemaTableName(table)
for i in range(self.gdal_ds.GetLayerCount()):
Expand Down

0 comments on commit 8c94cbb

Please sign in to comment.