diff --git a/ChangeLog b/ChangeLog index cef057228..762fa31ef 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,8 @@ $Source$ * Documentation.html, config.inc.php3, libraries/charset_conversion.lib.php3, libraries/config_import.lib.php3: Merged patch #729514 - support for iconv parameters. + * read_dump.php3, libraries/common.lib.php3: Merged patch #728928 - show + multi statement query result. 2003-05-11 Marc Delisle ### 2.5.0 released diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index 848ee6927..764373889 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -1331,7 +1331,8 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} ' . $GLOBALS['strEdit'] . ']'; + . '&sql_query=' . urlencode($local_query) . '&show_query=1#querybox" ' . $onclick . '>' . $GLOBALS['strEdit'] . ']'; } else { $edit_link = ''; } @@ -1416,10 +1417,10 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} . $explain_link_validate . '&sql_query='; - if (eregi('^SELECT[[:space:]]+', $GLOBALS['sql_query'])) { - $explain_link .= urlencode('EXPLAIN ' . $GLOBALS['sql_query']) . '">' . $GLOBALS['strExplain']; - } else if (eregi('^EXPLAIN[[:space:]]+SELECT[[:space:]]+', $GLOBALS['sql_query'])) { - $explain_link .= urlencode(substr($GLOBALS['sql_query'], 8)) . '">' . $GLOBALS['strNoExplain']; + if (eregi('^SELECT[[:space:]]+', $local_query)) { + $explain_link .= urlencode('EXPLAIN ' . $local_query) . '">' . $GLOBALS['strExplain']; + } else if (eregi('^EXPLAIN[[:space:]]+SELECT[[:space:]]+', $local_query)) { + $explain_link .= urlencode(substr($local_query, 8)) . '">' . $GLOBALS['strNoExplain']; } else { $explain_link = ''; } @@ -1437,7 +1438,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} $php_link = ' [