Bug report #17229
Processing history doesn't handle postgres source tables correctly
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Victor Olaya | ||
Category: | Processing/Core | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 25128 |
Description
Follow-up #17162
After I ran a "Select by location" algorithm in Processing, I copied the command from the History dialog and ran it again, with the following message error
>>> processing.run("native:selectbylocation", {'INPUT':'dbname='ref' host=localhost port=5432 user='delazj' sslmode=disable key='ogc_fid' table='cadastre'.'geo_parcelle' (geom) sql=','PREDICATE':[0],'INTERSECT':QgsProcessingFeatureSourceDefinition('perimetre_operationnel20160505180346904', True),'METHOD':0}) Traceback (most recent call last): File "C:\OSGEO4~1\apps\Python36\lib\code.py", line 64, in runsource code = self.compile(source, filename, symbol) File "C:\OSGEO4~1\apps\Python36\lib\codeop.py", line 168, in __call__ return _maybe_compile(self.compiler, source, filename, symbol) File "C:\OSGEO4~1\apps\Python36\lib\codeop.py", line 99, in _maybe_compile raise err1 File "C:\OSGEO4~1\apps\Python36\lib\codeop.py", line 87, in _maybe_compile code1 = compiler(source + "\n", filename, symbol) File "C:\OSGEO4~1\apps\Python36\lib\codeop.py", line 133, in __call__ codeob = compile(source, filename, symbol, self.flags, 1) File "<input>", line 1 processing.run("native:selectbylocation", {'INPUT':'dbname='ref' host=localhost port=5432 user='delazj' sslmode=disable key='ogc_fid' table='cadastre'.'geo_parcelle' (geom) sql=','PREDICATE':[0],'INTERSECT':QgsProcessingFeatureSourceDefinition('perimetre_operationnel20160505180346904', True),'METHOD':0}) ^ SyntaxError: invalid syntax
Associated revisions
[processing] Fix history doesn't correctly escape values
Fixes #17229
History
#1 Updated by Nyall Dawson about 7 years ago
- % Done changed from 0 to 100
- Status changed from Open to Closed
Applied in changeset qgis|b27382d0110b98782f4152fcd35c8eaf343e80e8.