Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2011-08-04 19:08:49 +0400
committerMichal Čihař <mcihar@suse.cz>2011-08-04 19:08:49 +0400
commit83d3c0d2fd729a2d09a480d19ec6484198b79379 (patch)
tree14d99dd5871ab47e1aeb047fe79d095d31e44a3a /db_datadict.php
parentf646fc8a559b687ad7eeeeff410c0b67a9b82055 (diff)
Move attribute processing to PMA_extractFieldSpec
Diffstat (limited to 'db_datadict.php')
-rw-r--r--db_datadict.php11
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>';