From ccec5e82bfe8a729528821e0b36313c8de0ea15f Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 25 Jan 2006 13:49:50 +0000 Subject: [PATCH] use PMA_countRecords --- ChangeLog | 4 ++++ db_details_qbe.php | 9 +-------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 031c653d0..c8d5559bf 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2006-01-25 Marc Delisle + * 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 * server_status.php: fixed bug: high ascii char in preg_match diff --git a/db_details_qbe.php b/db_details_qbe.php index a2baf4389..62febf719 100644 --- a/db_details_qbe.php +++ b/db_details_qbe.php @@ -805,14 +805,7 @@ if (isset($Field) && count($Field) > 0) { $checked_tables = $col_cand; foreach ($col_cand AS $tab) { if ($checked_tables[$tab] != 1 ) { - $rows_qry = 'SELECT COUNT(1) AS anz ' - . '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); + $tsize[$tab] = PMA_countRecords($db, $tab, true, false); $checked_tables[$tab] = 1; } $csize[$tab] = $tsize[$tab];