diff options
author | Michal Čihař <mcihar@suse.cz> | 2011-08-04 19:08:49 +0400 |
---|---|---|
committer | Michal Čihař <mcihar@suse.cz> | 2011-08-04 19:08:49 +0400 |
commit | 83d3c0d2fd729a2d09a480d19ec6484198b79379 (patch) | |
tree | 14d99dd5871ab47e1aeb047fe79d095d31e44a3a /db_datadict.php | |
parent | f646fc8a559b687ad7eeeeff410c0b67a9b82055 (diff) |
Move attribute processing to PMA_extractFieldSpec
Diffstat (limited to 'db_datadict.php')
-rw-r--r-- | db_datadict.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/db_datadict.php b/db_datadict.php index 1c46cbb1a2..86b4b80295 100644 --- a/db_datadict.php +++ b/db_datadict.php @@ -196,16 +196,7 @@ while ($row = PMA_DBI_fetch_row($rowset)) { $type_nowrap = ' nowrap="nowrap"'; } $type = htmlspecialchars($extracted_fieldspec['print_type']); - $attribute = ' '; - if ($extracted_fieldspec['binary']) { - $attribute = 'BINARY'; - } - if ($extracted_fieldspec['unsigned']) { - $attribute = 'UNSIGNED'; - } - if ($extracted_fieldspec['zerofill']) { - $attribute = 'UNSIGNED ZEROFILL'; - } + $attribute = $extracted_fieldspec['attribute'] if (! isset($row['Default'])) { if ($row['Null'] != 'NO') { $row['Default'] = '<i>NULL</i>'; |