Closed (fixed)
Project:
Comment RSS
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
8 Oct 2008 at 09:46 UTC
Updated:
31 Jul 2009 at 15:50 UTC
Jump to comment: Most recent file
Hello,
This version don't give any results with postgresql system.
In your query :
$SQL = 'SELECT '. $nidselector .', c.cid, c.subject, c.comment, c.timestamp, c.uid, c.name, c.format, u.name username, n.title FROM {node} n '. $joins .' INNER JOIN {comments} c ON c.nid = n.nid INNER JOIN {users} u ON c.uid = u.uid WHERE '. $where .' n.status = 1 AND c.status = %d ORDER BY c.timestamp DESC';
You should have an 'AS' keyword between 'u.name' and 'username'
Regads.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | commentrss.pages_.patch | 1 KB | Shiny |
Comments
Comment #1
gábor hojtsyOtherwise the module works all great with pgsql?
Comment #2
dave reidI stole a look through the code to see if anything is wrong with that query, but everything conforms to SQL-99. However, I was a little puzzled by the following:
It looks like the COMMENT_PUBLISHED is included twice in the parameters passed to db_query_range and it doesn't look like there is a need for it...
Comment #3
AlexisWilke commentedGábor Hojtsy,
Hey! This was reported on October 8 and not checked in... Why not?! I fixed that bug too and I downloaded the module only a few days ago (like less than 7) and I should have gotten the fixed version! (as I took the -dev module)
Would you mind quickly fixing this bug? The 'AS' will work just fine in MySQL and Oracle.
The rest seems to work just fine with PostgreSQL.
Thank you.
Alexis Wilke
Comment #4
Shiny commentedPatch attached for the missing AS.
Comment #5
AlexisWilke commentedLooks good to me. 8-)
Thank you.
Alexis Wilke
Comment #6
stefanor commentedI just came across this again as well. Patch looks good.
SR
Comment #7
dave reidCommitted to 6.x-2.x and 5.x-2.x. Thanks!