use PMA_countRecords
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2006-01-25 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* db_details_qbe.php: use PMA_countRecords() when possible, to be able
|
||||||
|
to centralise into it the VIEW detection logic
|
||||||
|
|
||||||
2006-01-25 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
2006-01-25 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||||
* server_status.php:
|
* server_status.php:
|
||||||
fixed bug: high ascii char in preg_match
|
fixed bug: high ascii char in preg_match
|
||||||
|
@@ -805,14 +805,7 @@ if (isset($Field) && count($Field) > 0) {
|
|||||||
$checked_tables = $col_cand;
|
$checked_tables = $col_cand;
|
||||||
foreach ($col_cand AS $tab) {
|
foreach ($col_cand AS $tab) {
|
||||||
if ($checked_tables[$tab] != 1 ) {
|
if ($checked_tables[$tab] != 1 ) {
|
||||||
$rows_qry = 'SELECT COUNT(1) AS anz '
|
$tsize[$tab] = PMA_countRecords($db, $tab, true, false);
|
||||||
. 'FROM ' . PMA_backquote($tab);
|
|
||||||
$rows_rs = PMA_DBI_query($rows_qry);
|
|
||||||
while ($res = PMA_DBI_fetch_assoc($rows_rs)) {
|
|
||||||
$tsize[$tab] = $res['anz'];
|
|
||||||
}
|
|
||||||
PMA_DBI_free_result($rows_rs);
|
|
||||||
unset($rows_rs);
|
|
||||||
$checked_tables[$tab] = 1;
|
$checked_tables[$tab] = 1;
|
||||||
}
|
}
|
||||||
$csize[$tab] = $tsize[$tab];
|
$csize[$tab] = $tsize[$tab];
|
||||||
|
Reference in New Issue
Block a user