From 4b2659aeabf90efbf5ca3f5e55309c50644d0aea Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Thu, 5 Dec 2013 13:01:53 -0500 Subject: [PATCH] removed schema prefix from returned table names. --- framework/yii/db/mssql/Schema.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/framework/yii/db/mssql/Schema.php b/framework/yii/db/mssql/Schema.php index deb92f9..a6c4ffa 100644 --- a/framework/yii/db/mssql/Schema.php +++ b/framework/yii/db/mssql/Schema.php @@ -348,12 +348,6 @@ FROM [information_schema].[tables] AS [t] 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(); } }