Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make QgsVectorDataProvider::fillMinMaxCache() handle LongLong
The code currently fallbacks to dealing with LongLong fields as strings, which breaks the ProviderTestCase testMinValue() and testMaxValue() tests, if we change the definition of the tests of the memory provider to use a int8 field for the cnt field. ====================================================================== FAIL: testMaxValue (__main__.TestPyQgsMemoryProviderIndexed) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/even/qgis-git/Quantum-GIS.clean/tests/src/python/providertestbase.py", line 349, in testMaxValue self.assertEqual(self.provider.maximumValue(1), 400) AssertionError: u'400' != 400 ====================================================================== FAIL: testMinValue (__main__.TestPyQgsMemoryProviderIndexed) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/even/qgis-git/Quantum-GIS.clean/tests/src/python/providertestbase.py", line 345, in testMinValue self.assertEqual(self.provider.minimumValue(1), -200) AssertionError: u'-200' != -200
- Loading branch information