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

maximum() function on an empty INT field returns -1.79769313486232e+308 #23923

Closed
qgib opened this issue Dec 23, 2016 · 3 comments
Closed

maximum() function on an empty INT field returns -1.79769313486232e+308 #23923

qgib opened this issue Dec 23, 2016 · 3 comments
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

Comments

@qgib
Copy link
Contributor

qgib commented Dec 23, 2016

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 16008
Affected QGIS version: 2.18.2
Redmine category:expressions


It should return 0, probably; certainly not a decimal value.

@qgib
Copy link
Contributor Author

qgib commented Dec 23, 2016

Author Name: Andreas Neumann (@andreasneumann)


you mean in case of an empty data set - no records?

I think it should return a NULL or undefined value, not 0 - or an error message.

0 is not automatically correct in all cases.

@qgib
Copy link
Contributor Author

qgib commented Dec 23, 2016

Author Name: Paolo Cavallini (@pcav)


Yes, no record.

@qgib
Copy link
Contributor Author

qgib commented Dec 26, 2016

Author Name: Nyall Dawson (@nyalldawson)


Fixed in changeset "64f8b4dbad2336ce765d8f3beaac1b085f54f03f".


  • status_id was changed from Open to Closed

@qgib qgib added 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 labels May 25, 2019
@qgib qgib closed this as completed May 25, 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! Expressions Related to the QGIS expression engine or specific expression functions
Projects
None yet
Development

No branches or pull requests

1 participant