Merge branch 'QA_4_6'

This commit is contained in:
Deven Bansod 2016-10-05 17:43:04 +05:30
commit ff91dc93f4
2 changed files with 4 additions and 1 deletions

View File

@ -88,6 +88,7 @@ phpMyAdmin - ChangeLog
- issue #12615 Fixed regexp for matching browser versions
- issue #12569 Avoid showing import errors twice
- issue #12362 prefs_manage.php can leave an orphaned temporary file
- issue #12619 Unable to export csv when using union select
4.6.4 (2016-08-16)
- issue [security] Weaknesses with cookie encryption, see PMASA-2016-29

View File

@ -67,7 +67,9 @@ if (! empty($sql_query)) {
}
// Rebuilding the SELECT and FROM clauses.
if (count($parser->statements[0]->from) > 0) {
if (count($parser->statements[0]->from) > 0
&& count($parser->statements[0]->union) === 0
) {
$replaces = array(
array(
'FROM', 'FROM ' . SqlParser\Components\ExpressionArray::build(