Couple of sql statements that had incorrect prefix handling or no

prefix handling.
This commit is contained in:
Tim Almdal
2009-03-18 01:20:30 +00:00
parent 222f6e2e23
commit 8e1817d4e4
2 changed files with 2 additions and 3 deletions

View File

@@ -61,8 +61,7 @@ class comment_installer {
$sql = "SELECT `item_id` FROM {comments}";
module::event("item_related_update_batch", $sql);
$db->query("DROP TABLE IF EXISTS {comments]
`;");
$db->query("DROP TABLE IF EXISTS {comments}`;");
module::delete("comment");
}
}

View File

@@ -46,6 +46,6 @@ class search_event_Core {
static function item_related_update_batch($sql) {
$db = Database::instance();
$db->query("UPDATE `search_records` SET `dirty` = 1 WHERE item_id IN ($sql)");
$db->query("UPDATE `{search_records}` SET `dirty` = 1 WHERE item_id IN ($sql)");
}
}