bug 576776 ShowAll

This commit is contained in:
Marc Delisle
2002-07-03 12:40:22 +00:00
parent f373f67377
commit e2c6a3d449
3 changed files with 7 additions and 3 deletions

View File

@@ -9,6 +9,8 @@ $Source$
* lang/japanese* updates, thanks to Yukihiro Kawada * lang/japanese* updates, thanks to Yukihiro Kawada
* Documentation.html: explain the oslash symbol in the statistics * Documentation.html: explain the oslash symbol in the statistics
* left.php3: the - as first choice is not clear * left.php3: the - as first choice is not clear
* tbl_properties_table_info.php3, tbl_properties_links.php3: bug
576776: ShowAll never displayed
2002-07-01 Alexander M. Turek <rabus@users.sourceforge.net> 2002-07-01 Alexander M. Turek <rabus@users.sourceforge.net>
* sql.php3: Completed fix against bug #575867 (Error with limit or load in * sql.php3: Completed fix against bug #575867 (Error with limit or load in

View File

@@ -7,7 +7,7 @@ $db_details_links_count_tabs = 0;
/** /**
* Prepares links * Prepares links
*/ */
if ($num_rows > 0) { if ($table_info_num_rows > 0) {
$lnk2 = 'sql.php3'; $lnk2 = 'sql.php3';
$arg2 = $url_query $arg2 = $url_query
. '&amp;sql_query=' . urlencode('SELECT * FROM ' . PMA_backquote($table)) . '&amp;sql_query=' . urlencode('SELECT * FROM ' . PMA_backquote($table))

View File

@@ -1,6 +1,8 @@
<?php <?php
/* $Id$ */ /* $Id$ */
// this should be recoded as functions, to avoid messing with global
// variables
/** /**
* Gets table informations * Gets table informations
@@ -11,7 +13,7 @@ if (PMA_MYSQL_INT_VERSION >= 32303) {
$table_info_result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0); $table_info_result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0);
$showtable = PMA_mysql_fetch_array($table_info_result); $showtable = PMA_mysql_fetch_array($table_info_result);
$tbl_type = strtoupper($showtable['Type']); $tbl_type = strtoupper($showtable['Type']);
$num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0); $table_info_num_rows = (isset($showtable['Rows']) ? $showtable['Rows'] : 0);
$show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : ''); $show_comment = (isset($showtable['Comment']) ? $showtable['Comment'] : '');
// better logic, thanks to Loic: // better logic, thanks to Loic:
@@ -29,7 +31,7 @@ if (PMA_MYSQL_INT_VERSION >= 32303) {
$local_query = 'SELECT COUNT(*) AS count FROM ' . PMA_backquote($table); $local_query = 'SELECT COUNT(*) AS count FROM ' . PMA_backquote($table);
$table_info_result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0); $table_info_result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $err_url_0);
$showtable = array(); $showtable = array();
$num_rows = PMA_mysql_result($table_info_result, 0, 'count'); $table_info_num_rows = PMA_mysql_result($table_info_result, 0, 'count');
$show_comment = ''; $show_comment = '';
} }
mysql_free_result($table_info_result); mysql_free_result($table_info_result);