Skip to content

Commit

Permalink
Merge branch 'QA_4_6'
Browse files Browse the repository at this point in the history
  • Loading branch information
devenbansod committed Oct 13, 2016
2 parents 3996046 + 8c357fa commit 4f3b22b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libraries/sql.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ function PMA_getQueryResponseForResultsReturned($result, $analyzed_sql_results,
// - for information_schema
// - if the result set does not contain all the columns of a unique key
// (unless this is an updatable view)
// - if the SELECT query contains a join
// - if the SELECT query contains a join or a subquery

$updatableView = false;

Expand All @@ -1875,8 +1875,9 @@ function PMA_getQueryResponseForResultsReturned($result, $analyzed_sql_results,
}
}

if (isset($statement->join)
&& ! empty($statement->join)
if ($analyzed_sql_results['join']
|| $analyzed_sql_results['is_subquery']
|| count($analyzed_sql_results['select_tables']) !== 1
) {
$just_one_table = false;
}
Expand Down

0 comments on commit 4f3b22b

Please sign in to comment.