更新数据库驱动类

This commit is contained in:
thinkphp
2016-09-18 17:19:12 +08:00
parent 2b476fe7ff
commit 677c4eb2fd
3 changed files with 3 additions and 0 deletions

View File

@@ -99,6 +99,7 @@ class Sqlsrv extends Connection
*/
public function getTables($dbName = '')
{
$this->initConnect(true);
$sql = "SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE'