From 6afa59946a3b0a32a42a01514688d49ce399bc05 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 2 Nov 2009 17:35:36 +0000 Subject: [PATCH] bug #2890443 [mysqli] "No index used in query" exception is reported --- ChangeLog | 1 + libraries/dbi/mysqli.dbi.lib.php | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 239f05231..029cf51ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -51,6 +51,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA 3.2.4.0 (not yet released) - bug [engines] Innodb_buffer_pool_pages_latched no longer returned in status - bug #2890451 [setup] Inconsistent generated "designer_coords" +- bug #2890443 [mysqli] "No index used in query" exception is reported 3.2.3.0 (2009-10-30) - patch #2856664 [export] Date, time, and datetime column types now export correctly to diff --git a/libraries/dbi/mysqli.dbi.lib.php b/libraries/dbi/mysqli.dbi.lib.php index 7e5d2cdfb..7ba6fbc3e 100644 --- a/libraries/dbi/mysqli.dbi.lib.php +++ b/libraries/dbi/mysqli.dbi.lib.php @@ -22,7 +22,13 @@ if (!defined('PMA_MYSQL_CLIENT_API')) { } /** - * some older mysql client libs are missing this constants ... + * some PHP versions are reporting extra messages like "No index used in query" + */ + +mysqli_report(MYSQLI_REPORT_OFF); + +/** + * some older mysql client libs are missing these constants ... */ if (! defined('MYSQLI_BINARY_FLAG')) { define('MYSQLI_BINARY_FLAG', 128);