Commit deac3a0e authored by Dries's avatar Dries
Browse files

- Patch #120146 by abautu: TRUNCATE TABLE replaced with DELETE FROM

parent 4d83f2d0
......@@ -153,7 +153,7 @@ function cache_clear_all($cid = NULL, $table = NULL, $wildcard = FALSE) {
else {
if ($wildcard) {
if ($cid == '*') {
db_query("TRUNCATE TABLE {%s}", $table);
db_query("DELETE FROM {%s}", $table);
}
else {
db_query("DELETE FROM {%s} WHERE cid LIKE '%s%%'", $table, $cid);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment