Index: update.php
===================================================================
RCS file: /cvs/drupal/drupal/update.php,v
retrieving revision 1.279
diff -u -p -r1.279 update.php
--- update.php	9 Mar 2009 20:58:19 -0000	1.279
+++ update.php	3 Apr 2009 21:38:01 -0000
@@ -164,9 +164,12 @@ function update_do_one($module, $number,
     return;
   }
 
+  $ret = array();
   $function = $module . '_update_' . $number;
   if (function_exists($function)) {
+    Database::startLog($function);
     $ret = $function($context['sandbox']);
+    $ret['queries'] = Database::getLog($function);
   }
 
   if (isset($ret['#finished'])) {
