bug #1108521, part 2: mysqli_num_rows; Function cannot be used with MYSQL_USE_RESULT

This commit is contained in:
Marc Delisle
2005-01-30 12:57:50 +00:00
parent 65f9ed1300
commit 22736ce77d
2 changed files with 6 additions and 2 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-01-30 Marc Delisle <lem9@users.sourceforge.net>
* libraries/export/sql.php: bug #1108521, part 2: mysqli_num_rows
cannot be used with MYSQL_USE_RESULT
2005-01-29 Alexander M. Turek <me@derrabus.de> 2005-01-29 Alexander M. Turek <me@derrabus.de>
* lang/japanese-utf-8.inc.php: Bug #1111855 ("Undefined index" when using * lang/japanese-utf-8.inc.php: Bug #1111855 ("Undefined index" when using
the Janapese language file under MySQL 4.1. the Janapese language file under MySQL 4.1.

View File

@@ -183,8 +183,8 @@ function PMA_getTableDef($db, $table, $crlf, $error_url, $show_dates = false)
$auto_increment = ''; $auto_increment = '';
$new_crlf = $crlf; $new_crlf = $crlf;
// need to use PMA_DBI_QUERY_STORE with PMA_DBI_num_rows() in mysqli
$result = PMA_DBI_query('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . PMA_sqlAddslashes($table) . '\''); $result = PMA_DBI_query('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . PMA_sqlAddslashes($table) . '\'', NULL, PMA_DBI_QUERY_STORE);
if ($result != FALSE) { if ($result != FALSE) {
if (PMA_DBI_num_rows($result) > 0) { if (PMA_DBI_num_rows($result) > 0) {
$tmpres = PMA_DBI_fetch_assoc($result); $tmpres = PMA_DBI_fetch_assoc($result);