This commit is contained in:
thinkphp
2016-03-02 11:05:32 +08:00
parent c6fb37b3a9
commit a3b95c9991

View File

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