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

@@ -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();