Bug report #11000
QgsExpression target format
|Affected QGIS version:||2.4.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||19342|
Expressions are currently evaluated without taking the target field type into account. This leads to strange behavior. Values are sometimes formatted for representation, but are not adjusted in memory.
I propose to add a method to define a target field on an expression. After evaluating an expression, the result should be converted to match these specifications of the target field (length, precision, type).