bug #2816165 [display] Executed query not always displayed

This commit is contained in:
Marc Delisle
2009-07-10 14:30:18 +00:00
parent 71bb195f29
commit 7381ddfb27
2 changed files with 5 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
+ new language files: uzbek_cyrillic and urbek_latin
- bug #2814109 [search] Right frame is blank
- bug #2816840 [priv] Cannot change a user's details
- bug #2816165 [display] Executed query not always displayed
3.2.0.1 (2009-06-30)
- [security] XSS: Insufficient output sanitizing in bookmarks

View File

@@ -343,6 +343,10 @@ if (! empty($GLOBALS['sql_query'])) {
$return_to_sql_query = $GLOBALS['sql_query'];
}
$GLOBALS['sql_query'] = implode('; ', $query) . ';';
// to ensure that the query is displayed in case of
// "insert as new row" and then "insert another new row"
$GLOBALS['display_query'] = $GLOBALS['sql_query'];
$total_affected_rows = 0;
$last_messages = array();
$warning_messages = array();