Skip to content

Commit

Permalink
Allow geometryless layers in Spatialite execute SQL
Browse files Browse the repository at this point in the history
Fixes #19558
  • Loading branch information
rudivs authored and nyalldawson committed Aug 8, 2018
1 parent 71f9910 commit 680c329
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/SpatialiteExecuteSQL.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
__revision__ = '$Format:%H$'

from qgis.core import (QgsDataSourceUri,
QgsProcessing,
QgsProcessingAlgorithm,
QgsProcessingException,
QgsProcessingParameterVectorLayer,
Expand All @@ -50,7 +51,7 @@ def __init__(self):
super().__init__()

def initAlgorithm(self, config=None):
self.addParameter(QgsProcessingParameterVectorLayer(self.DATABASE, self.tr('File Database'), optional=False))
self.addParameter(QgsProcessingParameterVectorLayer(self.DATABASE, self.tr('File Database'), types=[QgsProcessing.TypeVector], optional=False))
self.addParameter(QgsProcessingParameterString(self.SQL, self.tr('SQL query'), multiLine=True))

def name(self):
Expand Down

0 comments on commit 680c329

Please sign in to comment.