bug #1204951, left frame browse icon alt tag not updated on emptying table

This commit is contained in:
Marc Delisle
2005-06-06 01:03:47 +00:00
parent 7e1316c5d4
commit 21583d65a8
2 changed files with 5 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2005-06-05 Marc Delisle <lem9@users.sourceforge.net>
* libraries/functions.js: bug #1207405, invalid SQL when creating
table with zero fields
* sql.php: bug #1204951, left frame browse icon alt tag
not updated on emptying table
2005-06-05 Michal Čihař <michal@cihar.com>
* lang/czech: Update.

View File

@@ -271,9 +271,11 @@ else {
// Defines some variables
// 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('@^ALTER TABLE[[:space:]]+(.*)RENAME@i', $sql_query))) {
|| preg_match('@^ALTER TABLE[[:space:]]+(.*)RENAME@i', $sql_query)
|| preg_match('@^TRUNCATE@i', $sql_query))) {
$reload = 1;
}
// Gets the number of rows per page