public inbox for [email protected]
help / color / mirror / Atom feedpugs.postgresql.org error in pg_query()
2+ messages / 2 participants
[nested] [flat]
* pugs.postgresql.org error in pg_query()
@ 2008-07-18 11:44 Alexey Klyukin <[email protected]>
2008-07-19 16:43 ` Re: pugs.postgresql.org error in pg_query() Selena Deckelmann <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Alexey Klyukin @ 2008-07-18 11:44 UTC (permalink / raw)
To: pgsql-www
Hi,
I've noticed that pugs.postgresql.org shows this error on some pages:
warning: pg_query() [function.pg-query]: Query failed: ERROR: syntax error at or near "ON" LINE 1: SELECT count( DISTINCT ON (node.nid) node.nid) FROM node nod... ^ in /usr/local/www/drupal5/includes/database.pgsql.inc on line 125.
user warning: query: SELECT count( DISTINCT ON (node.nid) node.nid) FROM node node LEFT JOIN node_comment_statistics node_comment_statistics ON node.nid = node_comment_statistics.nid INNER JOIN users users ON node.uid = users.uid LEFT JOIN node n ON node.nid = n.nid INNER JOIN node_access na ON na.nid = node.nid WHERE ((n.moderate != 1)) AND (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all'))) AND ( (node.status = '1') ) in /usr/local/www/drupal5/includes/database.pgsql.inc on line 144.
For example you can see this error there:
http://pugs.postgresql.org/tracker
This error is drupal-related and discussed on this page:
http://drupal.org/node/128846#comment-759767
This patch seems to correct it:
http://drupal.org/files/issues/database.pgsql_.inc__1.patch
although I've never checked this since I don't have drupal installation around.
--
Alexey Klyukin http://www.commandprompt.com/
The PostgreSQL Company - Command Prompt, Inc.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pugs.postgresql.org error in pg_query()
2008-07-18 11:44 pugs.postgresql.org error in pg_query() Alexey Klyukin <[email protected]>
@ 2008-07-19 16:43 ` Selena Deckelmann <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Selena Deckelmann @ 2008-07-19 16:43 UTC (permalink / raw)
To: Alexey Klyukin <[email protected]>; +Cc: pgsql-www
On Fri, Jul 18, 2008 at 4:44 AM, Alexey Klyukin <[email protected]> wrote:
> I've noticed that pugs.postgresql.org shows this error on some pages:
Thank you. I had applied that patch a while back, but Marc tried to
upgrade using ports, and it failed. Must have eaten the patch
somewhere along the line.
I've re-applied the patch!
-selena
--
Selena Deckelmann
United States PostgreSQL Association - http://www.postgresql.us
PDXPUG - http://pugs.postgresql.org/pdx
Me - http://www.chesnok.com/daily
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-07-19 16:43 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-07-18 11:44 pugs.postgresql.org error in pg_query() Alexey Klyukin <[email protected]>
2008-07-19 16:43 ` Selena Deckelmann <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox