Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2201 closed bug (fixed)

shapefiles: problem with subset queries

Reported by: lutra Owned by: nobody
Priority: major: does not work as expected Milestone: Version 1.4.0
Component: Data Provider Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

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.

Change History (4)

comment:1 by jef, 14 years ago

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

comment:2 by lutra, 14 years ago

ok,

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

Then test a query like

"name" = 'Toscana'

comment:3 by jef, 14 years ago

Resolution: fixed
Status: newclosed

fixed in r12341

comment:4 by jef, 14 years ago

Platform: DebianAll
Priority: critical: causes crash or data corruptionmajor: does not work as expected
Note: See TracTickets for help on using tickets.