? revert-fix.patch
Index: commands/sql/sql.drush.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush/commands/sql/sql.drush.inc,v
retrieving revision 1.93
diff -u -p -r1.93 sql.drush.inc
--- commands/sql/sql.drush.inc	3 Jan 2011 05:48:08 -0000	1.93
+++ commands/sql/sql.drush.inc	3 Jan 2011 11:16:25 -0000
@@ -650,6 +650,9 @@ function drush_sql_dump_file(&$db_spec, 
 }
 
 function _drush_sql_get_scheme($db_spec = NULL) {
+  if (is_null($db_spec)) {
+    $db_spec = _drush_sql_get_db_spec();
+  }
   return $db_spec['driver'];
 }
 
