Adding up (+) variables in expression builder results in concatenation #22093
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Expressions
Related to the QGIS expression engine or specific expression functions
Author Name: Rombert Stapel (@rjstapel)
Original Redmine Issue: 14083
Affected QGIS version: 2.12.1
Redmine category:expressions
If I add up two variables using the expression builder, the two values are concatenated, instead of added up. So if A = 2091 and B = 0, I get the result of A+B = "20910" (as if I used the || operator). The other operators (-, /, *) seem to work as they should. If I add up two integers, there is no problem.
I have the latest QGIS on the Mac. Version 2.12.2 is not yet available on the Mac, so I am not sure if the bug is still present there.
The text was updated successfully, but these errors were encountered: