mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-03 14:02:47 +08:00
改进数据库驱动的getFields方法 支持指定别名的情况 修正model类一处错误
This commit is contained in:
@@ -34,6 +34,7 @@ class Sqlite extends Driver {
|
||||
* @return array
|
||||
*/
|
||||
public function getFields($tableName) {
|
||||
list($tableName) = explode(' ', $tableName);
|
||||
$result = $this->query('PRAGMA table_info( '.$tableName.' )');
|
||||
$info = [];
|
||||
if($result){
|
||||
|
||||
Reference in New Issue
Block a user