Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

field calculator: correct calculation, but 0s written to table #12855

Closed
qgib opened this issue Jun 8, 2010 · 6 comments
Closed

field calculator: correct calculation, but 0s written to table #12855

qgib opened this issue Jun 8, 2010 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jun 8, 2010

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 2795
Affected QGIS version: master
Redmine category:vectors
Assignee: Marco Hugentobler


When calculating (e.g. population/area/1000000), I see the correct results shown on the table, but after saving they are all set to 0

@qgib
Copy link
Contributor Author

qgib commented Jun 9, 2010

Author Name: Paolo Cavallini (@pcav)


  • status_id was changed from Open to Closed
  • resolution was changed from to invalid

@qgib
Copy link
Contributor Author

qgib commented Jul 13, 2011

Author Name: Alister Hood (@AlisterH)


I had a similar experience this afternoon - I added a column, filled in values manually, clicked the save button, closed the attribute table, reopened it, and I think the values were all NULL (not 0). Could it be related?

@qgib
Copy link
Contributor Author

qgib commented Jul 13, 2011

Author Name: Alister Hood (@AlisterH)


Actually, I just had it happen after using the field calculator too. The values ended up as NULL.
Am I going crazy?
Do you remember why you decided your report was invalid?

@qgib
Copy link
Contributor Author

qgib commented Jul 13, 2011

Author Name: Jürgen Fischer (@jef-n)


Wrong field type maybe?

@qgib
Copy link
Contributor Author

qgib commented Sep 16, 2012

Author Name: Alister Hood (@AlisterH)


I've just heard a report from someone using QGIS 1.8 of the same problem as in my last comment - I'll open a new ticket if there isn't one already.
I don't believe this is an issue of the wrong field type. Can't that only be an issue if the field calculator puts text in a numerical field (in which case it changes to 0 when it is saved)?


  • pull_request_patch_supplied was configured as 0
  • version was configured as master
  • crashes_corrupts_data was configured as 0

@qgib
Copy link
Contributor Author

qgib commented Sep 16, 2012

Author Name: Alister Hood (@AlisterH)


Alister Hood wrote:

I've just heard a report from someone using QGIS 1.8 of the same problem as in my last comment - I'll open a new ticket if there isn't one already.

#15623

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats) labels May 24, 2019
@qgib qgib added this to the Version 1.5.0 milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant