Closed (duplicate)
Project:
Drupal core
Version:
6.19
Component:
comment.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2010 at 15:10 UTC
Updated:
2 Sep 2010 at 08:17 UTC
with postgresql, it occur in comment module:314
# warning: pg_query(): Query failed: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list in /var/www/drupal-6.15/includes/database.pgsql.inc on line 139.
a patch is attached.
A description about PostgreSQL and select list, please see similar bug report http://drupal.org/node/742006#comment-2718292
Comments
Comment #1
dddave commentedMarked #742424: Error when upgrade to 6.16 from 6.15 as duplicate.
a patch is attached.No, it isn't. ;)
Comment #2
wa2nlinux commentedWhere is the patch ?
Comment #3
roderikAgain marked this one duplicate, of #742006: ERROR: for SELECT DISTINCT, ORDER BY expressions must appear in select list
For the 'patch', follow the link in the original message.
Comment #4
another_sam commented(Duplicated for actually which bug is this?)
I'm using 6.19 and the bug still exists. I fixed modifying database.pgsql.inc as follows:
BEFORE:
AFTER:
But this fix is a piece of shit since it is a replacement on runtime. The replacement should be simply manually hardcoded where the SELECT clause is composed, but I don't know where is it; someone who knows or who finds, please do it.
Thank you.
Comment #5
dddave commentedThis seems to be the mothership now: #735120: Fix changes to db_distinct_field() in D6.16 / PostgreSQL