summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2008-01-29 10:50:15 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2008-01-29 10:50:15 +0000
commit18575200c6315a8a87b85e856bb525f51f55dd29 (patch)
treeac505bbd8d826e28eeb652ca99d2cb058cf4a173
parent4bdf24ea52a0e661d84a13ec78a868cb50c46cc5 (diff)
downloadbrdo-18575200c6315a8a87b85e856bb525f51f55dd29.tar.gz
brdo-18575200c6315a8a87b85e856bb525f51f55dd29.tar.bz2
#210219 follow by myself: update_sql() does not support placeholders, so we should compose our own SQL ourselfs
-rw-r--r--modules/system/system.install5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 1de6f7401..bb879e6bd 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2484,9 +2484,8 @@ function system_update_6046() {
*/
function system_update_6047() {
$ret = array();
- $ret[] = update_sql("UPDATE {blocks} SET cache = %d WHERE module = '%s' AND delta = '%s'", -1, 'user', '0');
- $ret[] = update_sql("UPDATE {blocks} SET cache = %d WHERE module = '%s' AND delta = '%s'", -1, 'user', '1');
- $ret[] = update_sql("UPDATE {blocks} SET cache = %d WHERE module = '%s' AND delta = '%s'", -1, 'system', '0');
+ $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'user' AND delta IN ('0', '1')");
+ $ret[] = update_sql("UPDATE {blocks} SET cache = -1 WHERE module = 'system' AND delta = '0'");
return $ret;
}