Bug report #11000
QgsExpression target format
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Expressions | ||
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 |
Description
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).
Related issues
Associated revisions
History
#1 Updated by Matthias Kuhn about 10 years ago
- Status changed from Open to Closed
Fixed in changeset 7318c73012a2c7245f5ac7a268a457ae84f0a4de.