修正mysql驱动

This commit is contained in:
thinkphp
2016-03-02 10:50:51 +08:00
parent f9c6ecafdb
commit c6fb37b3a9

View File

@@ -57,6 +57,7 @@ class Mysql extends Driver
$result = $this->query($sql);
$info = [];
if ($result) {
$result = array_change_key_case($result);
foreach ($result as $key => $val) {
$info[$val['field']] = [
'name' => $val['field'],