fixed warnings and faults
This commit is contained in:
@@ -17,6 +17,7 @@ $Source$
|
||||
* It is now possible to print stats for more than 2 GB (up to exa byte)
|
||||
* db_details_structure.php3: correct wrong link from table size to stats
|
||||
* tbl_printview.php3: fixed warnings if relation is not defined
|
||||
* db_printview.php3: fixed warnings and faults
|
||||
|
||||
2002-07-17 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* lang/sync_lang.sh: support for multiple convertors (recode added),
|
||||
|
@@ -28,12 +28,12 @@ if (PMA_MYSQL_INT_VERSION >= 32303) {
|
||||
// Special speedup for newer MySQL Versions (in 4.0 format changed)
|
||||
if ($cfg['SkipLockedTables'] == TRUE && PMA_MYSQL_INT_VERSION >= 32330) {
|
||||
$local_query = 'SHOW OPEN TABLES FROM ' . PMA_backquote($db);
|
||||
$result = PMA_mysql_query($query) or PMA_mysqlDie('', $local_query, '', $err_url);
|
||||
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url);
|
||||
// Blending out tables in use
|
||||
if ($result != FALSE && mysql_num_rows($result) > 0) {
|
||||
while ($tmp = PMA_mysql_fetch_array($result)) {
|
||||
// if in use memorize tablename
|
||||
if (eregi('in_use=[1-9]+', $tmp)) {
|
||||
if (eregi('in_use=[1-9]+', $tmp[0])) {
|
||||
$sot_cache[$tmp[0]] = TRUE;
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,7 @@ if (PMA_MYSQL_INT_VERSION >= 32303) {
|
||||
|
||||
if (isset($sot_cache)) {
|
||||
$local_query = 'SHOW TABLES FROM ' . PMA_backquote($db);
|
||||
$result = PMA_mysql_query($query) or PMA_mysqlDie('', $local_query, '', $err_url);
|
||||
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url);
|
||||
if ($result != FALSE && mysql_num_rows($result) > 0) {
|
||||
while ($tmp = PMA_mysql_fetch_array($result)) {
|
||||
if (!isset($sot_cache[$tmp[0]])) {
|
||||
|
@@ -167,7 +167,7 @@ while (list($key, $table) = each($the_tables)) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
$have_rel = FALSE;
|
||||
$have_rel = FALSE;
|
||||
}
|
||||
// end if
|
||||
|
||||
|
Reference in New Issue
Block a user