Bug report #13938

Extra space in "IS NOT" operator makes the expression return wrong selection

Added by Giovanni Manghi over 1 year ago. Updated over 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Expressions
Affected QGIS version:2.8.3 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No

Description

Description to follow.

Associated revisions

Revision 5d989abd
Added by Jürgen Fischer over 1 year ago

fix parsing of IS NOT and NOT LIKE, NOT ILIKE and dumping of IS (NOT ...) (fixes #13938)

History

#1 Updated by Nyall Dawson over 1 year ago

  • Status changed from Open to Feedback

Setting to feedback just in case the extra detail doesn't come ;)

#2 Updated by Sebastian Dietrich over 1 year ago

@Giovanni Manghi:
Good catch!

If I may add the extra detail here:

1 IS NOT 2
evaluates to 1
1 IS  NOT 2
evaluates to 0
1 IS (NOT 2)
evaluates to 0, too

#3 Updated by Giovanni Manghi over 1 year ago

  • Status changed from Feedback to Open

that's it.

#4 Updated by Jürgen Fischer over 1 year ago

  • Status changed from Open to Closed

Also available in: Atom PDF