diff --git a/registry_rebuild.drush.inc b/registry_rebuild.drush.inc
index 7ee5100..14536cc 100644
--- a/registry_rebuild.drush.inc
+++ b/registry_rebuild.drush.inc
@@ -101,7 +101,7 @@ function drush_registry_rebuild() {
   drush_log(dt('Doing registry_rebuild() in DRUPAL_BOOTSTRAP_FULL.'));
 
   if (!drush_get_option('no-cache-clear')) {
-    db_query('TRUNCATE {cache}');
+    db_truncate('cache');
   }
 
   registry_rebuild();
diff --git a/registry_rebuild.php b/registry_rebuild.php
index a89510c..3639261 100644
--- a/registry_rebuild.php
+++ b/registry_rebuild.php
@@ -92,7 +92,7 @@ function registry_rebuild_rebuild() {
   print "Bootstrapping to DRUPAL_BOOTSTRAP_FULL<br/>\n";
   drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
   print "Doing registry_rebuild() in DRUPAL_BOOTSTRAP_FULL<br/>\n";
-  db_query('TRUNCATE {cache}');
+  db_truncate('cache');
   registry_rebuild();
   $parsed_after = registry_get_parsed_files();
 
