--- sql.drush.inc.ORIG 2009-06-06 00:51:04.000000000 +0000 +++ sql.drush.inc 2009-06-06 01:11:43.000000000 +0000 @@ -268,7 +268,7 @@ function drush_sql_query($query) { **/ function drush_sql_load($source, $destination) { $source = _drush_sql_get_spec_from_settings("./sites/$source/settings.php", 'source'); - $destination = _drush_sql_get_spec_from_settings("./sites/$destination/settings.php", 'target'); + $destination = _drush_sql_get_spec_from_settings("./sites/$destination/settings.php", 'destination'); // Prompt for confirmation. This is destructive. if (!drush_get_context('DRUSH_SIMULATE')) { @@ -372,10 +372,10 @@ function _drush_sql_get_spec_from_settin // Reset global databases to whatever is defined in $file global $databases, $db_url; require $file; - + // Translate the custom options for sql load into ones usually recognized (i.e. no prefix). if ($database = drush_get_option($prefix . '_database')) { - drush_set_option('database', $value); + drush_set_option('database', $database); } if ($target = drush_get_option($prefix . '_target')) { drush_set_option('target', $target);