From cc47ec14b523f64b2eb4770bdc1fc64dba8aafea Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Fri, 13 Feb 2004 23:34:19 +0000 Subject: [PATCH] Removed forgotten calls to mysql_wrappers.lib. --- ChangeLog | 1 + server_databases.php | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c1b140a9d..a8137774a 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ $Source$ 2004-02-13 Alexander M. Turek * libraries/common.lib.php: Fixed bug #890186 (PMA chokes on undefined parser functions if one of the very first queries fails. + * server_databases.php: Removed forgotten calls to mysql_wrappers.lib. 2004-02-11 Marc Delisle * server_privileges.php: bug 818654, password not copied diff --git a/server_databases.php b/server_databases.php index e841ad8de..82cd65cd6 100644 --- a/server_databases.php +++ b/server_databases.php @@ -119,12 +119,14 @@ foreach($dblist AS $current_db) { 'tot_sz' => 0 ); if (!empty($dbstats)) { - $res = PMA_mysql_query('SHOW TABLE STATUS FROM ' . PMA_backquote($current_db) . ';', $userlink) or PMA_mysqlDie(PMA_mysql_error($userlink), 'SHOW TABLE STATUS FROM ' . PMA_backquote($current_db) . ';'); - while ($row = PMA_mysql_fetch_array($res, MYSQL_ASSOC)) { + $res = PMA_DBI_query('SHOW TABLE STATUS FROM ' . PMA_backquote($current_db) . ';'); + while ($row = PMA_DBI_fetch_assoc($res)) { $tmp_array['tbl_cnt']++; $tmp_array['data_sz'] += $row['Data_length']; $tmp_array['idx_sz'] += $row['Index_length']; } + PMA_DBI_free_result($res); + unset($res); } $tmp_array['tot_sz'] = $tmp_array['data_sz'] + $tmp_array['idx_sz']; $statistics[] = $tmp_array;