Merge branch 'QA_4_4'

This commit is contained in:
Madhura Jayaratne 2015-03-10 12:12:49 +05:30
commit fa1b111fe2
2 changed files with 15 additions and 0 deletions

View File

@ -77,6 +77,7 @@ explanation
- bug #4790 DROP TABLE/VIEW IF EXISTS are not tracked
- bug Compatibility with central columns of version 4.4
- bug #4758 Firefox with auth_type to http with multiple server doesn't work anymore
- bug #4789 Views aren't dropped when copying a database
4.3.11.1 (2015-03-04)
- bug [security] Risk of BREACH attack, see PMASA-2015-1

View File

@ -361,6 +361,20 @@ function PMA_getViewsAndCreateSqlViewStandIn(
// first all the views are collected and a stand-in is created
// the real views are created after the tables
if (PMA_Table::isView($db, $each_table)) {
// If view exists, and 'add drop view' is selected: Drop it!
if ($_REQUEST['what'] != 'nocopy'
&& isset($_REQUEST['drop_if_exists'])
&& $_REQUEST['drop_if_exists'] == 'true'
) {
$drop_query = 'DROP VIEW IF EXISTS '
. PMA_Util::backquote($_REQUEST['newname']) . '.'
. PMA_Util::backquote($each_table);
$GLOBALS['dbi']->query($drop_query);
$GLOBALS['sql_query'] .= "\n" . $drop_query . ';';
}
$views[] = $each_table;
// Create stand-in definition to resolve view dependencies
$sql_view_standin = $export_sql_plugin->getTableDefStandIn(