Closed (fixed)
Project:
Comment Notify
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 May 2010 at 15:34 UTC
Updated:
26 Sep 2011 at 18:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedsomething like this?
Comment #2
gregglesLooks great to me - thanks Peter!
Comment #4
gregglesFinally committed - thanks http://drupalcode.org/project/comment_notify.git/commit/7423926
Comment #5
gregglesapparently "uniqid(mt_rand, TRUE)" is not really the right thing to do.
#1261532: Error on new update install
@pwolanin, what was your intent here?
Comment #6
dave reidComment #7
dave reidBetter patch that uses COALESCE for non-pgsql since that's more standard that IFNULL and uppercases SQL functions for readability.
Comment #8
dave reidBumping to critical as this prevents the module from being installed properly.
Comment #9
dave reidAlso, it should be possible to do this if we nest CONCAT() statements using two arguments per call - then it's 100% DBTNG compatible and we don't have to special-case for PostgreSQL.
Comment #10
gregglesGreat. I feel like nesting concats is ugly enough that it offsets portability.
#7 didn't work perfectly b/c it leaves us with the same salt for notifications on the same node.
Attached version adds cid to provide even more uniqueness.
Comment #11
kingfisher64 commentedI get the following error message when the module is enabled on drupal 7.8. I followed the link from http://drupal.org/node/1261532.
Notice: Use of undefined constant mt_rand - assumed 'mt_rand' in comment_notify_install()
Can someone tell me if the patch above is the fix to problem? If so could someone tell me how to apply this patch (i've never done a patch install before).
Thank you in advance for any help received
Comment #12
greggles@kingfisher64, yes, this is to fix that problem.
Thanks, Dave. This is now committed: http://drupalcode.org/project/comment_notify.git/commit/581f0ff