bug #1204913, left frame update on manual table rename
This commit is contained in:
@@ -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
|
||||
|
6
sql.php
6
sql.php
@@ -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
|
||||
|
Reference in New Issue
Block a user