Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use sqlite3 to directly run some SQL queries in QgsSpatiaLiteProvider…
…Connection, where we don't require result rows Because GDAL runs some consistency checks on spatialite databases on opening, this breaks the multi-step SQL commands which are run as part of renameVectorTable. The first SQL renames the table, then when the second tries to run gdal rejects the database because the geometry_columns definition is corrupt. Instead, add a method to directly run sql commands using sqlite3 instead of GDAL, and use this to run any SQL where we don't require result rows. Fixes Spatialite connection test
- Loading branch information
1 parent
99955e4
commit 684a237
Showing
3 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters