Bug report #11391
select by expression on numerical field doesn't give expected results
|Affected QGIS version:||2.4.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||fixed/implemented|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19674|
Add a layer with an integer field (let's call it "id")
select features with "select by expression" tool, using an expression like "id" > 10 and "id" <20
the selected features have id like 11, 12 ... but also 112, 185... and 2.
Selecting features with toint("id") > 10 and toint("id") <20 only selects features between 11 and 19. What is expecting.
It looks like QGIS doesn't recognize field type as numerical. my integer field "id" is used like a string one.
I just find that it is the same behavior with QGIS 2.4