Closed (won't fix)
Project:
AntiSpam
Version:
6.x-1.2
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Apr 2010 at 05:53 UTC
Updated:
17 Aug 2012 at 15:35 UTC
Jump to comment: Most recent file
Comments
Comment #1
pixture commentedI have never used PostgreSQL. I searched the Internet but it seems that PostgreSQL supports both IFNULL and COALESCE. I am wondering why COALESCE does not work. Can you explain what's wrong (end up with an error? or does not work as expected? or what?).
Thanks,
Comment #2
nileshgr commentedActually, in PostgreSQL, its not IFNULL. It was mistyped in the docs. Its NULLIF [1]
COALESCE does the same job.
[1] http://www.postgresql.org/docs/current/interactive/functions-conditional...
Comment #3
nileshgr commentedHi, I read the patch. The diff arguments got reversed. Here's a clean new working patch.
Comment #4
phaul commentedAlso there is an error of missing column from GROUP BY:
query: SELECT MIN(date) AS oldest, MAX(date) AS latest FROM antispam_counter ORDER BY date DESC LIMIT 365 in /var/www/drupal-6.16/sites/all/modules/antispam/antispam.admin.inc on line 456.
pg_query(): Query failed: ERROR: column "antispam_counter.date" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: ...AX(date) AS latest FROM antispam_counter ORDER BY date DESC ... ^ in /var/www/drupal-6.16/includes/database.pgsql.inc on line 139.
this patch remedies that as well.
Comment #5
nileshgr commentedYeah, I was thinking of submitting a patch for the same.
Comment #6
Everett Zufelt commentedPlease re-open if the problem exists with 7.x-1.x
Comment #7
liam morland