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 b0bc604 commit 4f59bca21378f05698d6f3c15be4094fb00db93b
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 4f59bca

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