Skip to content
Permalink
Browse files

Allow geometryless layers in Spatialite execute SQL

Fixes #19558
  • Loading branch information
rudivs authored and nyalldawson committed Aug 8, 2018
1 parent 71f9910 commit 680c3295ffce4d2489c826ed1b84a1dd1c215333
Showing with 2 additions and 1 deletion.
  1. +2 −1 python/plugins/processing/algs/qgis/SpatialiteExecuteSQL.py
@@ -26,6 +26,7 @@
__revision__ = '$Format:%H$'

from qgis.core import (QgsDataSourceUri,
QgsProcessing,
QgsProcessingAlgorithm,
QgsProcessingException,
QgsProcessingParameterVectorLayer,
@@ -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):

0 comments on commit 680c329

Please sign in to comment.
You can’t perform that action at this time.