diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-09-12 14:37:51 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-09-12 14:37:51 +0200 |
commit | 34a0902089a410d1f7dda78d1f8b0771333c09df (patch) | |
tree | 729c7a994d64b7dbf9f78656d95b34846cae58ba /program/steps | |
parent | 8cc65d1f5fae71e2ee07748e82ab274d8d45304b (diff) |
Use consistent column/table quoting in sql queries
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/utils/killcache.inc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/program/steps/utils/killcache.inc b/program/steps/utils/killcache.inc index 1cb99b879..1adaebd8c 100644 --- a/program/steps/utils/killcache.inc +++ b/program/steps/utils/killcache.inc @@ -26,22 +26,27 @@ if (!$RCMAIL->config->get('devel_mode')) { } // @TODO: transaction here (if supported by DB) would be a good thing -$res = $RCMAIL->db->query("DELETE FROM cache"); +$res = $RCMAIL->db->query("DELETE FROM " . $RCMAIL->db->table_name('cache', true)); if ($err = $RCMAIL->db->is_error($res)) { exit($err); } -$res = $RCMAIL->db->query("DELETE FROM cache_messages"); +$res = $RCMAIL->db->query("DELETE FROM " . $RCMAIL->db->table_name('cache_shared', true)); if ($err = $RCMAIL->db->is_error($res)) { exit($err); } -$res = $RCMAIL->db->query("DELETE FROM cache_index"); +$res = $RCMAIL->db->query("DELETE FROM " . $RCMAIL->db->table_name('cache_messages', true)); if ($err = $RCMAIL->db->is_error($res)) { exit($err); } -$res = $RCMAIL->db->query("DELETE FROM cache_thread"); +$res = $RCMAIL->db->query("DELETE FROM " . $RCMAIL->db->table_name('cache_index', true)); +if ($err = $RCMAIL->db->is_error($res)) { + exit($err); +} + +$res = $RCMAIL->db->query("DELETE FROM " . $RCMAIL->db->table_name('cache_thread', true)); if ($err = $RCMAIL->db->is_error($res)) { exit($err); } |