Closed (fixed)
Project:
Drush
Version:
8.x-6.0-beta1
Component:
Core Commands
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Jun 2013 at 16:36 UTC
Updated:
29 Jul 2013 at 15:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
moshe weitzman commentedIt looks like the only way now is to pass in a full --db-url. I don't recall why we removed this. You'd have to review the git logs or search the closed issues.
Comment #2
rballou commentedFrom glancing at the code, it seems like this still may be there, but not recognized? http://drupalcode.org/project/drush.git/blob/refs/heads/8.x-6.x:/command...
Comment #3
greg.1.anderson commentedI think that what happened here is that
_drush_sql_connectused to use drush_get_option to determine which database to connect to, but somewhere back in Drush 3, this was cleaned up such that the caller was expected to set up the appropriate database settings before making the function call, to insure that a --database option did not affect some call that it should not have. However, sql-cli was inadvertantly missed.Comment #4
greg.1.anderson commentedI think this should more or less do it, but I haven't really tested it.
Comment #5
rballou commentedI tried that patch, but it doesn't seem to work for me. Looking closer at
sql_drush_commandit seems that$optionsis not passed to the sql-cli item. I'm not sure if #4 is needed or not (in my tests it worked without it, but that might still be needed).Comment #6
moshe weitzman commentedI committed #5, since it looks necessary. #4looks optional, since the same code gets executed later, if a $db_spec is not provided.
It would be good if someone reviewed other sql commands to see if we omitted more instances of $options.