bug 580929

This commit is contained in:
Marc Delisle
2002-07-13 12:03:54 +00:00
parent d2c8b6ae0c
commit e784fa2b01
2 changed files with 7 additions and 2 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-07-13 Marc Delisle <lem9@users.sourceforge.net>
* libraries/common.lib.php3: bug 580929: do not EXPLAIN if this is
not a SELECT
2002-07-13 Alexander M. Turek <rabus@users.sourceforge.net>
* Documentation.html: News about bug #540671.

View File

@@ -1203,8 +1203,9 @@ if (typeof(document.getElementById) != 'undefined'
. '&amp;sql_query=' . urlencode($GLOBALS['sql_query']) . '&amp;show_query=y#querybox">' . $GLOBALS['strEdit'] . '</a>';
}
// Want to have the query explained (Mike Beck 2002-05-22)
// but do not explain an explain (lem9)
if (!eregi('^EXPLAIN[[:space:]]+', $GLOBALS['sql_query'])) {
// but only explain a SELECT (that has not been explained)
if (!eregi('^EXPLAIN[[:space:]]+', $GLOBALS['sql_query'])
&& eregi('SELECT[[:space:]]+', $GLOBALS['sql_query'])) {
$explain_link = '[<a href="sql.php3'
. $url_qpart
. '&amp;sql_query=' . urlencode('EXPLAIN ' . $GLOBALS['sql_query']) . '">' . $GLOBALS['strExplain'] . '</a>]&nbsp;';