Skip to content

Commit

Permalink
removed schema prefix from returned table names.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Dec 5, 2013
1 parent 7749d99 commit 4b2659a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions framework/yii/db/mssql/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,6 @@ protected function findTableNames($schema = '')
WHERE [t].[table_schema] = :schema AND [t].[table_type] = 'BASE TABLE'
SQL;

$names = $this->db->createCommand($sql, [':schema' => $schema])->queryColumn();
if ($schema !== static::DEFAULT_SCHEMA) {
foreach ($names as $index => $name) {
$names[$index] = $schema . '.' . $name;
}
}
return $names;
return $this->db->createCommand($sql, [':schema' => $schema])->queryColumn();
}
}

0 comments on commit 4b2659a

Please sign in to comment.