db_query() calls db_prefix_tables before preg_replace_callback so a query like this will not be prefixed correctly:
db_query("UPDATE {%s} SET ...", $table);
Correct version is (from D6 includes/cache.inc):
db_query("UPDATE {". $table ."} SET ...");
| Comment | File | Size | Author |
|---|---|---|---|
| prefix.patch | 7.22 KB | lewisvance |
Comments
Comment #1
jeremy commentedWhat files are you referring to? Please submit an actual patch.
Comment #2
catchJust marked 5.x as unsupported.