bug #1204913, left frame update on manual table rename

This commit is contained in:
Marc Delisle
2005-05-26 17:09:07 +00:00
parent d790e42101
commit 1f2733989b
2 changed files with 5 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2005-05-26 Marc Delisle <lem9@users.sourceforge.net>
* tbl_create.php: bug #1207406, undefined index from PMA_setComment()
* sql.php: bug #1204913, left frame update on manual table rename
2005-05-25 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties.inc.php: bug #1207404, undefined variables

View File

@@ -269,9 +269,11 @@ else {
$sql_query = '';
}
// Defines some variables
// loic1: A table has to be created -> left frame should be reloaded
// A table has to be created or renamed -> left frame should be reloaded
// TODO: use the parser/analyzer
if ((!isset($reload) || $reload == 0)
&& preg_match('@^CREATE TABLE[[:space:]]+(.*)@i', $sql_query)) {
&& (preg_match('@^CREATE TABLE[[:space:]]+(.*)@i', $sql_query)
|| preg_match('@^ALTER TABLE[[:space:]]+(.*)RENAME@i', $sql_query))) {
$reload = 1;
}
// Gets the number of rows per page