Skip to content

Commit

Permalink
Merge pull request qgis#57754 from agiudiceandrea/fix-57751-dbmanager…
Browse files Browse the repository at this point in the history
…-delete-raster-gpkg

[DB Manager] Fix delete raster layer in GeoPackage (Fix qgis#57751)
  • Loading branch information
elpaso authored Jun 24, 2024
2 parents c2be995 + a840ebf commit 4b38aad
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 @@ -587,7 +587,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 4b38aad

Please sign in to comment.