Bug report #2201

shapefiles: problem with subset queries

Added by Giovanni Manghi about 15 years ago. Updated about 15 years ago.

Status:Closed
Priority:Low
Assignee:nobody -
Category:Data Provider
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:12261

Description

The problem seems to affect just shapefiles, not postgis nor spatialite.

Open a shapefile a create a subset trough te subset query option in "properties -> general".

Save the project and close qgis.

Reopen qgis and open the project, all the features will show, not just the queried ones.

Go to properties -> general and you will see that the query is malformed. Any try to correct it produce the message "setting the query failed".

Tested on trunk on ubuntu 9.04.

Associated revisions

Revision a3f4b3e4
Added by Jürgen Fischer about 15 years ago

fix #2201

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12341 c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision a95aa6c7
Added by Jürgen Fischer about 15 years ago

fix #2201

git-svn-id: http://svn.osgeo.org/qgis/trunk@12341 c8812cc2-4d05-0410-92ff-de0c093fc19c

History

#1 Updated by Jürgen Fischer about 15 years ago

can you give an example? something simple like "AREA"<1000000 didn't reproduce the problem here.

#2 Updated by Giovanni Manghi about 15 years ago

ok,

take the spatialite sample dataset and save the layer "regions" as shapefile.

Then test a query like

"name" = 'Toscana'

#3 Updated by Jürgen Fischer about 15 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

fixed in a95aa6c7 (SVN r12342)

Also available in: Atom PDF