function _drush_sql_get_invalid_url_msg

6.x sql.drush.inc _drush_sql_get_invalid_url_msg($db_spec = NULL)
3.x sql.drush.inc _drush_sql_get_invalid_url_msg($db_spec = NULL)
4.x sql.drush.inc _drush_sql_get_invalid_url_msg($db_spec = NULL)
5.x sql.drush.inc _drush_sql_get_invalid_url_msg($db_spec = NULL)

File

commands/sql/sql.drush.inc, line 841
Drush sql commands

Code

function _drush_sql_get_invalid_url_msg($db_spec = NULL) {
  if (is_null($db_spec)) {
    $db_spec = _drush_sql_get_db_spec();
  }
  switch (drush_drupal_major_version()) {
    case 5:
    case 6:
      return dt('Unable to parse DB connection string');
    default:
      return dt('Unable to parse DB connection array');
  }
}