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
DbManager allows users to input missing column names for row id and geometry #19376
Comments
Author Name: Nyall Dawson (@nyalldawson) Do you have a spatialite data file which demonstrates this that I can test with?
|
Author Name: Loïc BARTOLETTI (@lbartoletti) Here a project with spatialite data. test_atlas is a layer
and added with DB Manager (see PNG image)
|
Author Name: Nyall Dawson (@nyalldawson) I get an error trying to open that zip. Can you please re-upload? |
Author Name: Loïc BARTOLETTI (@lbartoletti) I forget to say that works when I create a table like this:
|
Author Name: Nyall Dawson (@nyalldawson) Ok - I've fixed the crash (because crashing is bad!), but the real problem is in your query/db manager. In your screenshot you have entered "ROWID" as the unique values column, but this column does not exist in your query. This causes the layer to load in a broken state -- some things work, but the behaviour is undefined (for instance, try opening the attribute table on this layer). I'm reassigning this bug to db manager plugin as you should not be allowed to input an invalid column name as the unique column or geometry column.
|
Author Name: Sandro Santilli (@strk) does not cause crash or corruption anymore... is it really in progress ?
|
Author Name: Giuseppe Sucameli (@brushtyler) Fixed in changeset "2a57b170685a45cb939457933b1474ac02d78ee5".
|
Author Name: Loïc BARTOLETTI (@lbartoletti)
Original Redmine Issue: 11037
Affected QGIS version: 2.4.0
Redmine category:db_manager
Atlas crash when using a spatialite VIEW in coverage layer (tested on Window 64 and FreeBSD).
Works fine with PostGis View.
The text was updated successfully, but these errors were encountered: