This code is very database-specific. Probably needs quite a bit of work to make it neutral. I'll start looking at it, but I'm not a very experienced developer, and am also not very familiar with the differences between MySQL and PostgreSQL, simply that I need this functionality for an intranet I'm managing, and we happen to be using PGSQL. If anyone has any suggestions about how to fix this, or can provide examples of database-switching code from other modules, I'd love to see it.
The functions that seem to be causing problems are 'mysql_real_escape_string' and 'mysql_fetch_object'.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | pgsqlfix.patch | 2.57 KB | rssaddict |
Comments
Comment #1
rssaddict commentedThis turns out to be a really easy fix. Drupal provides generic alternatives to the mysql_real_escape_string and mysql_fetch_object functions, called db_escape_string and db_fetch_object, which can be substituted with no effect on the module's function. Patch attached.
Comment #2
jbrown commented#1 also adds mysqli support - please apply
Comment #3
sigsby commentedThis patch works fine for me. Gets my thumbs up.
Comment #4
arithmetric commentedrssaddict,
Thanks for reporting this and working it out. I've fixed this in the latest version (dated 2008-October-25).
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.