Fix PMA_getTableContentOld (bug #820932).

This commit is contained in:
Michal Čihař
2003-10-10 09:11:29 +00:00
parent 2cca662e92
commit b6c81d3f3f
2 changed files with 4 additions and 7 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-10-10 Michal Cihar <nijel@users.sourceforge.net>
* libraries/export/sql.php3: Fix PMA_getTableContentOld (bug #820932).
2003-10-07 Marc Delisle <lem9@users.sourceforge.net>
* lang/russian*: updated, thanks to Artyom Rabzonov

View File

@@ -556,13 +556,7 @@ function PMA_getTableContentOld($db, $table, $crlf, $error_url, $sql_query)
: ';';
$buffer = '';
if (!empty($sql_query)) {
$local_query = $sql_query . $add_query;
PMA_mysql_select_db($db);
} else {
$local_query = 'SELECT * FROM ' . PMA_backquote($db) . '.' . PMA_backquote($table) . $add_query;
}
$result = PMA_mysql_query($local_query) or PMA_mysqlDie('', $local_query, '', $error_url);
$result = PMA_mysql_query($sql_query) or PMA_mysqlDie('', $sql_query, '', $error_url);
$current_row = 0;
$fields_cnt = mysql_num_fields($result);
$rows_cnt = mysql_num_rows($result);