Removed forgotten calls to mysql_wrappers.lib.

This commit is contained in:
Alexander M. Turek
2004-02-13 23:34:19 +00:00
parent 9abea89287
commit cc47ec14b5
2 changed files with 5 additions and 2 deletions

View File

@@ -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;