From 8417db5866925779c053c48f9c9fc046a891d83a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 16 Sep 2010 16:02:49 +0200 Subject: [PATCH] rfe #2956556 [interface] Allow to wrap enum values. --- ChangeLog | 1 + tbl_structure.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9c36632c30..7c3e4fecf6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -115,6 +115,7 @@ - [core] Force generating of new session on login - rfe #1105678 [interface] Drop page-break-before as it is useless for smaller tables. +- rfe #2956556 [interface] Allow to wrap enum values. 3.3.8.0 (not yet released) - bug #3059311 [import] BIGINT field type added to table analysis diff --git a/tbl_structure.php b/tbl_structure.php index 7c59d984f4..f33438e2c2 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -245,7 +245,8 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) { $extracted_fieldspec = PMA_extractFieldSpec($row['Type']); if ('set' == $extracted_fieldspec['type'] || 'enum' == $extracted_fieldspec['type']) { - $type = $extracted_fieldspec['type'] . '(' . $extracted_fieldspec['spec_in_brackets'] . ')'; + $type = $extracted_fieldspec['type'] . '(' . + str_replace("','", "', '", $extracted_fieldspec['spec_in_brackets']) . ')'; // for the case ENUM('–','“') $type = htmlspecialchars($type); -- 2.11.4.GIT