Index: dba.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/dba/dba.module,v
retrieving revision 1.62
diff -u -p -r1.62 dba.module
--- dba.module	11 Dec 2008 02:52:55 -0000	1.62
+++ dba.module	11 Dec 2008 03:09:46 -0000
@@ -770,7 +770,7 @@ function dba_query_form() {
     '#type' => 'textarea',
     '#title' => t('Database query'),
     '#cols' => 70, '#rows' => 10,
-    '#description' => t('Enter the text of your database query.  This will be executed directly in your database, so the action can not be undone.  Do not wrap your tables in {}, as direct database queries do not support Drupal\'s database prefixing.  If you are using a database prefix, you will need to manually include the prefix in your table name.  Separate multiple queries with a ";".  A sample query: \'SELECT COUNT(*) FROM accesslog;\''),
+    '#description' => t('Enter the text of your database query. This will be executed directly in your database, so the action can not be undone. Separate multiple queries with a ";".  A sample query: "SELECT COUNT(*) FROM {accesslog};"'),
   );
   $form['query']['actions'] = array(
     '#prefix' => '<div class="container-inline">',
@@ -808,7 +808,7 @@ function dba_query_form_pre_render($form
       if (trim($sql) == '') {
         break;
       }
-      $result = dba_execute_query($sql);
+      $result = dba_execute_query(db_prefix_tables($sql));
       if ($result && $result != 1 && db_num_rows($result)) {
         while ($row = db_fetch_array($result)) {
           if (!$header) {
