From a53514649aeeecdf0028a7439e1526d3bd30f17c Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 9 Aug 2004 00:41:59 +0000 Subject: [PATCH] mysqli and field list in query box --- ChangeLog | 12 ++++++++---- tbl_query_box.php | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 62d8024dd..976bf94d1 100755 --- a/ChangeLog +++ b/ChangeLog @@ -6,13 +6,17 @@ $Id$ $Source$ 2004-08-08 Marc Delisle - * libraries/relation.lib.php: bug 1005414, undefined offset when - no display field has been defined; bug 1004546, sort error in dropdown - list of foreign values; incorrect result was freed + * libraries/relation.lib.php: + bug 1005414, undefined offset when no display field has been defined; + bug 1004546, sort error in dropdown list of foreign values; + incorrect result was freed * libraries/relation.lib.php: use natural order sort according to config * db_details_structure.php, pdf_pages.php, pdf_schema.php: make it work with mysqli extension - ### 2.6.0-rc1 released + * scripts/upgrade_tables_mysql_4_1_2+.sql: new script to upgrade pmadb + on MySQL 4.1.2 + * libraries/bookmark.lib.php: bug (mysqli) + * tbl_query_box.php: field list does not show (mysqli) 2004-08-08 Michal Čihař * calendar.php: Include correct stylesheet (bug #1005421). diff --git a/tbl_query_box.php b/tbl_query_box.php index 736eeea7d..292584b98 100644 --- a/tbl_query_box.php +++ b/tbl_query_box.php @@ -37,7 +37,7 @@ $fields_cnt = 0; if (isset($db) && isset($table) && $table != '' && $db != '') { // we do a try_query here, because we could be in the query window, // trying to synchonize and the table has not yet been created - $result = PMA_DBI_try_query('SHOW FIELDS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db) . ';'); + $result = PMA_DBI_try_query('SHOW FIELDS FROM ' . PMA_backquote($table) . ' FROM ' . PMA_backquote($db) . ';', NULL, PMA_DBI_QUERY_STORE); if ($result) { $fields_cnt = PMA_DBI_num_rows($result); while ($row = PMA_DBI_fetch_assoc($result)) {