The moderation block does not show the number of items in queue.
I get a bunch of php type errors in the log related to this.
| Comment | File | Size | Author |
|---|---|---|---|
| patch_84.txt | 862 bytes | robin t |
The moderation block does not show the number of items in queue.
I get a bunch of php type errors in the log related to this.
| Comment | File | Size | Author |
|---|---|---|---|
| patch_84.txt | 862 bytes | robin t |
Comments
Comment #1
robin t commentedComment #2
pwolanin commentedWell, I'm not sure why the change you suggest would make any difference - what database server are you using?
Of course, there is no reason to order when doing the count, so this is a good change.
Comment #3
pwolanin commentedcommitted to 5.x and HEAD
Comment #4
robin t commentedI'm using postgres. I get a feeling that it might work in mysql?
The syntax is wrong: you cannot sort by something when using an aggregate function without also grouping.
# SELECT COUNT(*) FROM node n WHERE n.status = 1 AND n.moderate = 1 ORDER BY n.changed DESC;
ERROR: column "n.changed" must appear in the GROUP BY clause or be used in an aggregate function
# SELECT COUNT(*) FROM node n WHERE n.status = 1 AND n.moderate = 1;
count
-------
0
(1 row)
And yes, in this case it is unnecessary to sort.
Comment #5
pwolanin commented