diff --git a/ChangeLog b/ChangeLog index 350bd06fd..85a06d4ab 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,9 @@ $Source$ * server_privileges.php3: - Fixed a broken link in the user overview table; - Fixed bug #539756 again. + * lang/german-*.inc.php3: Updates. + * tbl_properties_structure.php3, lang/*.inc.php3: Nicer output for MySQL 4.1 + (Feature #623665, part 1). 2003-04-11 Marc Delisle * libraries/common.lib.php3, config_import.lib.php3: diff --git a/tbl_properties_structure.php3 b/tbl_properties_structure.php3 index 990a09a70..cd8f55fcb 100755 --- a/tbl_properties_structure.php3 +++ b/tbl_properties_structure.php3 @@ -77,6 +77,7 @@ $fields_cnt = mysql_num_rows($fields_rs);    += 40100 ? ' ' . $strCharset . '' . "\n" : ''; ?> @@ -93,11 +94,11 @@ if ($GLOBALS['cfg']['ShowPropertyComments']) { require('./libraries/transformations.lib.php3'); $cfgRelation = PMA_getRelationsParam(); - - + + if ($cfgRelation['commwork']) { $comments_map = PMA_getComments($db, $table); - + if ($cfgRelation['mimework'] && $cfg['BrowseMIME']) { $mime_map = PMA_getMIME($db, $table, true); } @@ -138,6 +139,11 @@ while ($row = PMA_mysql_fetch_array($fields_rs)) { $zerofill = eregi('ZEROFILL', $row['Type'], $test); } + // rabus: Devide charset from the rest of the type definition (MySQL >= 4.1) + if (strpos($type, ' character set ')) { + list($type, $field_charset) = explode(' character set ', $type); + } + // garvin: Display basic mimetype [MIME] if ($cfgRelation['commwork'] && $cfgRelation['mimework'] && $cfg['BrowseMIME'] && isset($mime_map[$row['Field']]['mimetype'])) { $type_mime = '
MIME: ' . str_replace('_', '/', $mime_map[$row['Field']]['mimetype']); @@ -185,6 +191,7 @@ while ($row = PMA_mysql_fetch_array($fields_rs)) {    > += 40100 ? ' ' . (empty($field_charset) ? '---' : $field_charset) . '' . "\n" : '' ?>     @@ -284,7 +291,7 @@ $checkall_url = 'tbl_properties_structure.php3?' . PMA_generate_common_url($db,$ ?> - + <?php echo $strWithChecked; ?>