Closed danielplappert closed 12 years ago
can you test it after fix and comment about?
fixed https://github.com/256MbTeam/Redmine-Scrumbler/commit/42665a6f331f161276068495dd14475c27937ea9 update to lastest version and please test
I "fixed" this issue in "scrumbler_sprint.rb" (line 63 and line 77) as I described above and it worked as expected. But this is a postgresql fix only!
my fix should work with any db
I tried your patch, but it doesn't work. The "new" exception is:
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
: SELECT sum("custom_values".value) AS sum_value FROM "custom_values" WHERE (custom_field_id = 10 and
customized_type = 'Issue' and
customized_id in (1753,1752,1711,1674,1564,1517,1404,1405,0) and
value <> '?')
It's still the same. The conversion is still missing for the postgresql DB.
i understand this error. try to checkout last commit https://github.com/256MbTeam/Redmine-Scrumbler/commit/af6b9ea313e882c3d896a26f01225b06308d5e5b i hope it's working
I tried your last patch and it's working correctly! Thanks.
Using a postgresql DB causes an error in statistics:
This happens because the sum function in postgresql needs a conversion, if the value is not a number or numeric type. The correct query for postgresql would be: