Hey, really nice handy module, but does not work with PostgreSQL.
Here is explanation why this happens:
http://www.postgresql.org/message-id/2493.1045885186@sss.pgh.pa.us
I`ve created the patch to fix the issue and tested it with PostgreSQL. No testing with MySQL was done, but I think it must work like a charm.
| Comment | File | Size | Author |
|---|---|---|---|
| postgresql_fix.patch | 1.69 KB | RealGecko |
Comments
Comment #2
sami radi commentedHello,
I've fixed the issue for PostgreSQL in the latest release, could you check it out.
Best regards.
Comment #3
sami radi commentedComment #4
RealGecko commentedWith version 1.3 I get the following error
PDOException: SQLSTATE[42803]: Grouping error: 7 ERROR: column "s.title" must appear in the GROUP BY clause or be used in an aggregate function LINE 7: (SELECT s.title AS title, COUNT(*) AS duplicate, md5(s.title... ^: SELECT n.nid AS nid, n.uid AS uid, n.status AS status, n.created AS created, n.changed AS changed, n.title AS title, u.name AS name FROM {node} n INNER JOIN {users} u ON n.uid = u.uid INNER JOIN (SELECT n.title AS title FROM (SELECT s.title AS title, COUNT(*) AS duplicate, md5(s.title) AS checksum FROM {node} s WHERE (s.type = :db_condition_placeholder_2) GROUP BY checksum) n WHERE (duplicate > :db_condition_placeholder_1) ) nn ON md5(n.title) = md5(nn.title) WHERE (n.type = :db_condition_placeholder_0) ORDER BY title ASC; Array ( [:db_condition_placeholder_0] => news [:db_condition_placeholder_1] => 1 [:db_condition_placeholder_2] => news ) в функции _remove_duplicates_get_nodes() (line 905 in remove_duplicates.module).Comment #5
sami radi commentedHello,
Fixed in the latest commit, release will be out soon.
Best Regards.