数组定义用法统一

This commit is contained in:
thinkphp
2013-04-11 14:49:39 +08:00
parent bbe3ebedcf
commit 00ee80e943
35 changed files with 83 additions and 81 deletions

View File

@@ -72,14 +72,14 @@ class Oracle extends Driver{
$info = [];
if($result) {
foreach ($result as $key => $val) {
$info[strtolower($val['column_name'])] = array(
$info[strtolower($val['column_name'])] = [
'name' => strtolower($val['column_name']),
'type' => strtolower($val['data_type']),
'notnull' => $val['notnull'],
'default' => $val['data_default'],
'primary' => $val['pk'],
'autoinc' => $val['pk'],
);
];
}
}
return $info;