public inbox for [email protected]  
help / color / mirror / Atom feed
From: Alexey Klyukin <[email protected]>
To: [email protected]
Subject: pugs.postgresql.org error in pg_query()
Date: Fri, 18 Jul 2008 14:44:57 +0300
Message-ID: <[email protected]> (raw)

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.



view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: pugs.postgresql.org error in pg_query()
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox