Here's a patch that should make Simplenews PostgreSQL compatible without breaking MySQL compatibility.

CommentFileSizeAuthor
simplenews_1.patch2.01 KBmousse-man

Comments

DriesK’s picture

I'm not familiar with Postgres. From your patch I conclude that errors are generated by the double quotes inside a string? So instead of your patch, would this also solve the issue?

db_query("SELECT status FROM {blocks} WHERE module = '%s' AND delta = '%s'", ....

I guess it would, as it is standard style troughout simplenews, and you actually pointed out the exceptions... I committed this code, can you test it and set this issue to 'fixed' if all works?

DriesK’s picture

Status: Needs review » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)