diff --git a/ChangeLog b/ChangeLog index e2649a57a..b5e4a2345 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,9 @@ $Source$ 2002-05-17 Loďc Chapeaux * db_details_structure.php3, lines 446-458; tbl_properties_options.php3, lines 119-143: beautified generated code. + * libraries/build_dump.php3, lines 70-75: fixed bug #551682 - PMA ignores + case of table names under winwin, thanks to + Paweł Szczepański . 2002-05-16 Loďc Chapeaux * db_details_structure.php3; Documentation.html: coding standards. diff --git a/libraries/build_dump.lib.php3 b/libraries/build_dump.lib.php3 index a3412f5de..86ee995b2 100644 --- a/libraries/build_dump.lib.php3 +++ b/libraries/build_dump.lib.php3 @@ -30,8 +30,6 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){ /** * Returns $table's CREATE definition * - * Uses the 'PMA_htmlFormat()' function defined in 'tbl_dump.php3' - * * @param string the database name * @param string the table name * @param string the end of line sequence @@ -69,6 +67,12 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){ $result = mysql_query('SHOW CREATE TABLE ' . PMA_backquote($db) . '.' . PMA_backquote($table)); if ($result != FALSE && mysql_num_rows($result) > 0) { $tmpres = mysql_fetch_array($result); + // Fix for case problems with winwin, thanks to + // Paweł Szczepański + $pos = strpos($tmpres[1], ' ('); + $tmpres[1] = substr($tmpres[1], 0, 13) + . (($use_backquotes) ? PMA_backquote($tmpres[0]) : $tmpres[0]) + . substr($tmpres[1], $pos); $schema_create .= str_replace("\n", $crlf, PMA_htmlFormat($tmpres[1])); } mysql_free_result($result);