Installing the module to a postgreSQL or MySQL database in ANSI SQL mode fails with a database error, because some queries contain string literals delimited with " double quotes rather than the ANSI SQL92 standard ' single quotes. MySQL's default is to treat "-delimited strings as string literals, but postgres and MySQL in ANSI mode interpret "-delimited strings as quoted identifiers.
The attached patch replaces occurrences of double-quotes around SQL string literals with single quotes, allowing the module to install on all supported databases.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | psql.patch | 6.78 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedLooks like my patch didn't get attached.
Comment #2
agittins commentedExcellent, thanks for that patch, enp - also a Postgres shop here so much appreciated. Would be great if this could be drawn into a new release...
FYI, if you have already installed the module, then disable it, then "uninstall" the module (admin, site building, modules, uninstall), then enable it again - this makes sure that the installation sets up the rules and groups for you (otherwise the rules and group tabs will be empty).
Comment #3
HS commented