Commit 4b2659ae by Qiang Xue

removed schema prefix from returned table names.

parent 7749d992
...@@ -348,12 +348,6 @@ FROM [information_schema].[tables] AS [t] ...@@ -348,12 +348,6 @@ FROM [information_schema].[tables] AS [t]
WHERE [t].[table_schema] = :schema AND [t].[table_type] = 'BASE TABLE' WHERE [t].[table_schema] = :schema AND [t].[table_type] = 'BASE TABLE'
SQL; SQL;
$names = $this->db->createCommand($sql, [':schema' => $schema])->queryColumn(); return $this->db->createCommand($sql, [':schema' => $schema])->queryColumn();
if ($schema !== static::DEFAULT_SCHEMA) {
foreach ($names as $index => $name) {
$names[$index] = $schema . '.' . $name;
}
}
return $names;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment