[Phpmyadmin-devel] [PATCH] Fix incorrect row count in db_details.php

Joshua Nye josh at boxcarmedia.com
Wed Feb 20 13:41:02 CET 2002


I noticed that my row count displayed was incorrect for InnoDB tables as opposed to a SELECT COUNT(*).

--Josh

--- ../phpMyAdmin/db_details.php        Tue Feb 19 18:35:40 2002
+++ db_details.php      Wed Feb 20 16:37:13 2002
@@ -278,8 +278,10 @@
             echo "\n" . '        ';
             if ($mergetable == TRUE) {
                 echo '<i>' . number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator) . '</i>' .
 "\n";
-            } else {
+            } elseif($nonisam == FALSE) {
                 echo number_format($sts_data['Rows'], 0, $number_decimal_separator, $number_thousands_separator) . "\n";
+            } else {
+                echo "-";
             }
             ?>
     </td>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20020220/339bbf70/attachment.html>


More information about the Developers mailing list