mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正mysql驱动
This commit is contained in:
@@ -57,6 +57,7 @@ class Mysql extends Driver
|
|||||||
$result = $this->query($sql);
|
$result = $this->query($sql);
|
||||||
$info = [];
|
$info = [];
|
||||||
if ($result) {
|
if ($result) {
|
||||||
|
$result = array_change_key_case($result);
|
||||||
foreach ($result as $key => $val) {
|
foreach ($result as $key => $val) {
|
||||||
$info[$val['field']] = [
|
$info[$val['field']] = [
|
||||||
'name' => $val['field'],
|
'name' => $val['field'],
|
||||||
|
|||||||
Reference in New Issue
Block a user