Execute and load SQL processing algorithm fails if statement includes semi colon #30239
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Processing
Relating to QGIS Processing framework or individual Processing algorithms
Environment: QGIS 3.4.8 on macOS
It is common practice to include a semi-colon at the end of an SQL statement. However when doing this in the 'Execute and load SQL' processing algorithm, the algorithm fails with a cryptic message:
I enabled logging in my PostGIS instance and saw the issue was caused by a stray semi-colon:
Using the tool again with no semi-colon allows the statement to run successfully:
The text was updated successfully, but these errors were encountered: