Closed (won't fix)
Project:
Comment Subscribe
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Oct 2008 at 06:51 UTC
Updated:
26 May 2009 at 10:18 UTC
1) Comment Subscribe module is not compatible to PostgreSQL due to heavy usage of MySQL-specific SQL code
* ifnull function (coalesce() in postgress)
* IF statements (CASE in Postgress)
* Concat function ( '||' operator in Postgres)
* UPDATE t1,t2,t3 set t1.f=... join t2 .. (should be replaced with update t1 ... where t1.field in (select from t2,t3)
2) Also, module activation produces an error due to incorrect sql code generated if no comments exists on site (on MySQL too)
Both problems are fixed in attached patch. MySQL code is not touched, new SQL statements added under if $GLOBALS['db_type'] == 'pgsql'
| Comment | File | Size | Author |
|---|---|---|---|
| comment_subscribe-pgsql.diff | 8.8 KB | Alex_Tutubalin |
Comments
Comment #1
zyxware commentedHi Alex_Tutubalin,
Thanks for your patch. We will integrate it with our code and will soon release it for community review.
Regards
zyxware
Comment #2
zyxware commentedHi Alex_Tutubalin,
Thanks for your patch. We will integrate it with our code and will soon release it for community review.
Regards
zyxware
Comment #3
dave reidDELETE FROM {z_commentsubscribe} WHERE cid = %d or instr(parents, '%s,')could easily be
DELETE FROM {z_commentsubscribe} WHERE cid = %d OR parents LIKE '%%%s%%'Both work as intended on all databases since LIKE is a SQL-99 standard.
Comment #4
emi_bcn commentedHi all!
Is it going to be introduced to HEAD?
+Subscribing
Comment #5
zyxware commentedIt has been decided to merge Comment Subscribe module with the Comment Notify module as both currently have the same set of functionalities. We have stopped our support here and will be providing our support at the Comment Notify issue queue. To help you seamlessly migrate to Comment Notify, we have provided an easy migration pathway using the last update - 6.x-1.4. Migration instructions are provided at the Comment Subscribe project home page . Once again thank you all for your wonderful support and contributions towards this module. See you all at the Comment Notify issue queue :-)