bug 580929
This commit is contained in:
@@ -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.
|
||||
|
||||
|
@@ -1203,8 +1203,9 @@ if (typeof(document.getElementById) != 'undefined'
|
||||
. '&sql_query=' . urlencode($GLOBALS['sql_query']) . '&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
|
||||
. '&sql_query=' . urlencode('EXPLAIN ' . $GLOBALS['sql_query']) . '">' . $GLOBALS['strExplain'] . '</a>] ';
|
||||
|
Reference in New Issue
Block a user