Merge commit '2ee0e4ed0e86572f15764fea6ef37bdaf546e6ee'

This commit is contained in:
Michal Čihař 2016-08-01 11:05:39 +02:00
commit 3bcd45f87f
4 changed files with 22 additions and 4 deletions

View File

@ -35,6 +35,8 @@ phpMyAdmin - ChangeLog
- issue #12413 Fixed deleting users in non English locales
- issue #12416 Fixed replication status output in Databases listing
- issue #12303 Avoid typecasting to float when not needed
- issue #12425 Duplicate message variable names in messages.inc.php
- issue #12399 Adding index to table shows wrong top navigation
4.6.3 (2016-06-23)
- issue #12249 Fixed cookie path on Windows

View File

@ -636,10 +636,14 @@ if ($sqlLength <= $GLOBALS['cfg']['MaxCharactersInDisplayedSQL']) {
list(
$analyzed_sql_results,
$db,
$table
$table_from_sql
) = PMA_parseAnalyze($sql_query, $db);
// @todo: possibly refactor
extract($analyzed_sql_results);
if ($table != $table_from_sql && !empty($table_from_sql)) {
$table = $table_from_sql;
}
}
// There was an error?
@ -668,11 +672,15 @@ if ($go_sql) {
list(
$analyzed_sql_results,
$db,
$table
$table_from_sql
) = PMA_parseAnalyze($sql_query, $db);
// @todo: possibly refactor
extract($analyzed_sql_results);
if ($table != $table_from_sql && !empty($table_from_sql)) {
$table = $table_from_sql;
}
$html_output .= PMA_executeQueryAndGetQueryResponse(
$analyzed_sql_results, // analyzed_sql_results
false, // is_gotofile

View File

@ -2035,10 +2035,14 @@ function PMA_executeQueryAndSendQueryResponse($analyzed_sql_results,
list(
$analyzed_sql_results,
$db,
$table
$table_from_sql
) = PMA_parseAnalyze($sql_query, $db);
// @todo: possibly refactor
extract($analyzed_sql_results);
if ($table != $table_from_sql && !empty($table_from_sql)) {
$table = $table_from_sql;
}
}
$html_output = PMA_executeQueryAndGetQueryResponse(

View File

@ -141,11 +141,15 @@ require_once 'libraries/parse_analyze.lib.php';
list(
$analyzed_sql_results,
$db,
$table
$table_from_sql
) = PMA_parseAnalyze($sql_query, $db);
// @todo: possibly refactor
extract($analyzed_sql_results);
if ($table != $table_from_sql && !empty($table_from_sql)) {
$table = $table_from_sql;
}
/**
* Check rights in case of DROP DATABASE