Skip to content
Snippets Groups Projects
Commit deac3a0e authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 4d83f2d0
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment