Using count() method on RelationQuery returns a single character string which seems to be the first number of the real count. Eg. actual count() 50 returns a string '5'.
Test attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | count_bug_tests-1616282-3.patch | 813 bytes | mikran |
| #3 | count_fix_with_tests-1616282-3.patch | 1.14 KB | mikran |
| #2 | 1616282-2.patch | 967 bytes | mikran |
| count_bug.patch | 558 bytes | uhkis |
Comments
Comment #2
mikran commentedI'm not sure whether this is better or just implementing the count function to RelationQuery in addition to execute. Patch should fix the problem but at the very least the test needs to be rewritten.
Comment #3
mikran commentedOkay, this has been open for ages for such a simple fix. Here is a reroll, going to commit soon
Comment #4
mikran commented