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.

Comments

Status: Needs review » Needs work

The last submitted patch, count_bug.patch, failed testing.

mikran’s picture

Status: Needs work » Needs review
StatusFileSize
new967 bytes

I'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.

mikran’s picture

Okay, this has been open for ages for such a simple fix. Here is a reroll, going to commit soon

mikran’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.