改进Query类的gettableinfo方法

This commit is contained in:
thinkphp
2016-09-07 11:52:24 +08:00
parent 185961821a
commit fc0c563706

View File

@@ -1372,7 +1372,7 @@ class Query
$tableName = $this->parseSqlTable($tableName);
}
$guid = $tableName;
list($guid) = explode(' ', $tableName);
if (!isset(self::$info[$guid])) {
$info = $this->connection->getFields($tableName);
$fields = array_keys($info);