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;