I find this module invaluable but on one of my sites can only use Postgres.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | subscriptions.patch | 5.77 KB | roderik |
I find this module invaluable but on one of my sites can only use Postgres.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | subscriptions.patch | 5.77 KB | roderik |
Comments
Comment #1
adrian commentedLooking into it.
if you would like it to go faster by helping with testing, please contact me on adrian_at_removethis_dot_daemon_dot_co_za
Comment #2
hystrix commentedAdrian supplied me the following table creation.
When I enable the module, the following errors appear on the front page.
Comment #3
killes@www.drop.org commentedBoth the pgsql table by adrian and the mysql table in cvs do not seem to match what the module expects. From reading the code I infer that there should be a "stype" column, and probably some more.
Comment #4
TDobes commentedkilles:
subscriptions.mysql defines:
I spent a few minutes searching through the code and reviewing every db_query... As far as I can tell, they all refer only to the fields defined above. Perhaps you were accidentially looking at version 1.1 of subscriptions.mysql? Both the 4.3 and 4.4 versions use version 1.2. Therefore, I'm turning this back into a pgsql request.
Comment #5
hystrix commentedVerified that the 4.4.0 version of subscriptions with postgresql 7.3 on drupal 4.4.1 still produces the errors I posted previously.
Comment #6
roderikIt's not the columns which are a problem; it's the string values. As far as I can tell, you have to use single quotes for PostgreSQL, not double quotes.
Here's a patch against the 4.4.0 module.
(I just finished installing the subscriptions module on my box, getting it to work on PostgreSQL, and _afterwards_ finding this issue. The patch contains a little more than the PostgreSQL fixes:
- translation fixes -- I think that HTML tags should be taken _outside_ the t() function. (Oh, and I replaced {p/} by {/p} somewhere)
- I think in subscriptions_user() you want to refer to 'case "edit_form"', not "edit"
I hope it's OK that the patch fixes more than the bug report is about - if not, tell me :) )
Comment #7
hystrix commentedThanks Roderick. This appears to have solved the problem. I was able to manage my subscriptions without error. I haven't verified receiving email yet, but that shouldn't be affected by this.
Suggest this patch be applied to cvs, and the psql table creation file be included in the distribution.
Comment #8
(not verified) commentedComment #9
ttt commentedThe patch didn't make it into 4.5.0. (was it supposed to?) Double quotes are still causing problems in PostgreSQL.
Comment #10
TDobes commentedI have committed a modified version of the patch provided by Roderik, as well as the table provided by adrian to both the 4.5 and HEAD branch. Thank you all for your help on this. If there are still any remaining issues with PostgreSQL, please re-open this issue and provide details.
Comment #11
(not verified) commented