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 b0bc604 commit 4f59bca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/algs/qgis/SpatialiteExecuteSQL.py
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 4f59bca

Please sign in to comment.