更新数据库驱动类

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

@@ -74,6 +74,7 @@ class Sqlite extends Connection
*/
public function getTables($dbName = '')
{
$this->initConnect(true);
$sql = "SELECT name FROM sqlite_master WHERE type='table' "
. "UNION ALL SELECT name FROM sqlite_temp_master "
. "WHERE type='table' ORDER BY name";