tw_perform_analysis() relies on db_set_active() to set the correct DB for the schema module, but schema (6.x-1.3) uses the global $db_url directly in schema_mysql_inspect():

  $tables = array();
  $url = parse_url(is_array($db_url) ? $db_url['default'] : $db_url);
  $database = substr($url['path'], 1);

my hacky workaround has been to manipulate $db_url in tw_perform_analysis()

Comments

mikeryan’s picture

Status: Active » Closed (works as designed)

See README.txt - you need the patch at http://drupal.org/node/411538