mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
fixed metadata-function for adodb
This commit is contained in:
parent
1f6efbdda5
commit
652511bdb3
@ -652,11 +652,20 @@
|
||||
$i = 0;
|
||||
foreach($columns as $column)
|
||||
{
|
||||
$metadata[$i] = $column;
|
||||
$metadata[$i] = array(
|
||||
'table' => $table,
|
||||
'name' => $column->name,
|
||||
'type' => $column->type,
|
||||
'len' => $column->max_len,
|
||||
'flags' => False, // the following values are not used in eGW atm
|
||||
'not_null' => $column->not_null,
|
||||
'has_default' => $column->has_default,
|
||||
'default' => $column->default_value,
|
||||
);
|
||||
$metadata[$i]['table'] = $table;
|
||||
if ($full)
|
||||
{
|
||||
$metadata['meta'][$column['name']] = $i;
|
||||
$metadata['meta'][$column->name] = $i;
|
||||
}
|
||||
++$i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user