mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02:48 +08:00
字段填充方式string更改为value 修正mysql驱动一处BUG
This commit is contained in:
@@ -50,9 +50,12 @@ class Mysql extends Driver
|
||||
{
|
||||
$this->initConnect(true);
|
||||
list($tableName) = explode(' ', $tableName);
|
||||
$sql = 'SHOW COLUMNS FROM `' . $tableName . '`';
|
||||
$result = $this->query($sql);
|
||||
$info = [];
|
||||
if (strpos($tableName, '.')) {
|
||||
$tableName = str_replace('.', '`.`', $tableName);
|
||||
}
|
||||
$sql = 'SHOW COLUMNS FROM `' . $tableName . '`';
|
||||
$result = $this->query($sql);
|
||||
$info = [];
|
||||
if ($result) {
|
||||
foreach ($result as $key => $val) {
|
||||
$val = array_change_key_case($val);
|
||||
|
||||
Reference in New Issue
Block a user