Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix][DbManager] 14110 - Error fetching layer indexes with recent … #2696

Merged
merged 1 commit into from
Jan 19, 2016

Conversation

mdouchin
Copy link
Contributor

…sqlite version

Fixes #14110

The method getTableIndexes, situated in line 371 of the file db_manager/db_plugins/spatialite/connector.py,
expected to get 3 fields from the sqlite method PRAGMA index_list .
In recent versions of SQLite, since 3.8.9, though, this method now returns 5 fields.
This commit fixes this issue by checking the length of columns returned by the method.

…sqlite version

Fixes qgis#14110

The method `getTableIndexes`, situated in line 371 of the file `db_manager/db_plugins/spatialite/connector.py`,
expected to get 3 fields from the sqlite method `PRAGMA index_list` .
In recent versions of SQLite, since 3.8.9, though, this method now returns 5 fields.
This commit fixes this issue by checking the length of columns returned by the method.
brushtyler added a commit that referenced this pull request Jan 19, 2016
[bugfix][DbManager] Fix indexes fetch with sqlite >= v3.8.9 (fix #14110)
@brushtyler brushtyler merged commit 472fa9b into qgis:master Jan 19, 2016
@brushtyler
Copy link
Contributor

Merged, thanks @mdouchin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants