Fixed a bug (Error when modifying table keys)

This commit is contained in:
Alexander M. Turek
2002-11-11 20:15:57 +00:00
parent b8a852d6ac
commit bb3c783afb
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-11-11 Alexander M. Turek <rabus@users.sourceforge.net>
* libaries/common.lib.php3: Fixed bug #?????? (Error when modifying table
keys). --- Please insert the correct bug id as soon as SF is up again :o)
2002-11-11 Marc Delisle <lem9@users.sourceforge.net>
* libraries/sqlparser.lib.php3: LEFT JOIN ... USING
* libraries/sqlparser.lib.php3: bug 636575 (double and single quotes)

View File

@@ -1104,7 +1104,7 @@ if (typeof(document.getElementById) != 'undefined'
// Checks if the table needs to be repaired after a TRUNCATE query.
if (PMA_MYSQL_INT_VERSION >= 40000
&& isset($GLOBALS['table'])
&& isset($GLOBALS['table']) && isset($GLOBALS['sql_query'])
&& $GLOBALS['sql_query'] == 'TRUNCATE TABLE ' . PMA_backquote($GLOBALS['table'])) {
if (!isset($tbl_status)) {
$result = @PMA_mysql_query('SHOW TABLE STATUS FROM ' . PMA_backquote($GLOBALS['db']) . ' LIKE \'' . PMA_sqlAddslashes($GLOBALS['table'], TRUE) . '\'');