well it does not work like it should.
First of all there is a bug that causes following pgsql error:
pg_query(): Query failed: ERROR: invalid input syntax for integer: "page" in /home/dodobas/public_html/drupal-pg/includes/database.pgsql.inc on line 45.
this happens when you enable queue module, and try to add any kind of content by clicking on create content.
AFAIK mysql is immune to integer related errors.
Anyway after changing following line in queue.module:
238: $node = node_load(array('nid' => $id));
to
238: $node = node_load(array('type' => $id));
the query is working normally. I don't know is this what is intended for that query to do, but it fixes the problem.
Other problems i just don't know how to "fix". When i finally create content and put it in moderation 'queue' displaying of posts in moderation queue is not ok. After i make a 'vote' content of submission queue does not get rendered properly. Instead of properly SUMing up the votes, and showing only one item, it shows duplicate items. And i think that the number of duplicate items depends on number of users votes, but i could be wrong...
As I recall submission queue in Drupal 4.5.2 worked fine....
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | queue_fix_plus.patch | 1.75 KB | jose reyero |
| #1 | queue_fix.patch | 1.43 KB | dodobas |
Comments
Comment #1
dodobas commentedComment #2
dodobas commentedi forgot to explain it:
1. postgres integer problem fixed
2. multiple display of nodes in submission queue was caused by wrong group by statment
also i think that queue module is still underdevloped, and can't think of a way to use it ...
Comment #3
jose reyero commentedThe node count for the moderation page is also wrong,
Just added one more line to the patch.
Changed priority to critical, as these bugs render the submission queue unusable.
Comment #4
jose reyero commentedSeems I cannot change priority to crital :-)
Anyway, the status should be patch
Comment #5
Steven commentedThat line 238 fix looks very bogus. You can't just change one column selection to another. It is intended to show a node's moderation results in the sidebar.
Comment #6
dodobas commentedMaybe i can't, but before I "fixed" it, it was comparing node types with node id's, and like i said mysql doesn't report error when comparing integers with some non number value, pgsql does!
At least that query now returns rows, are those the "right" rows, I just don't know...
Maybe the trouble is with var '$id'...
Comment #7
Wes Cowley commentedI played with this one a bit in my sandbox installation. The first set of changes to the SQL selects seem to be correct, they eliminate the duplicate rows in the submission queue list.
The change to line 238 is wrong though. What works for me is changing:
to simply:
Comment #8
magico commentedqueue.module no longer exists.