summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Lutfy2012-05-02 02:45:33 (GMT)
committerMathieu Lutfy2012-05-02 02:45:33 (GMT)
commita58a11ac8d5bf6a0235e8ebf8e43a7b4cf8fe3bd (patch)
tree4611d97c764c26f76286ff09f8ed98f85c90af60
parent2fd99918216a0f7b8092e8a28242b0371a526644 (diff)
fix for mysql syntax
-rw-r--r--boost.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost.module b/boost.module
index eb53976..703c32d 100644
--- a/boost.module
+++ b/boost.module
@@ -6260,10 +6260,10 @@ function boost_crawler_prune_table($expire) {
}
if ($expire && BOOST_LOOPBACK_BYPASS) {
- db_query("DELETE FROM {boost_crawler} cr WHERE cr.hash IN (SELECT ca.hash_url FROM {boost_cache} ca WHERE ca.expire BETWEEN 1 AND 434966399 OR ca.expire > %d)", BOOST_TIME);
+ db_query("DELETE FROM {boost_crawler} WHERE hash IN (SELECT ca.hash_url FROM {boost_cache} ca WHERE ca.expire BETWEEN 1 AND 434966399 OR ca.expire > %d)", BOOST_TIME);
}
else {
- db_query("DELETE FROM {boost_crawler} cr WHERE cr.hash IN (SELECT ca.hash_url FROM {boost_cache} ca WHERE ca.expire BETWEEN 1 AND 434966399 OR ca.expire > 434966400)");
+ db_query("DELETE FROM {boost_crawler} WHERE hash IN (SELECT ca.hash_url FROM {boost_cache} ca WHERE ca.expire BETWEEN 1 AND 434966399 OR ca.expire > 434966400)");
}
variable_set('boost_crawl_prune_table', TRUE);