Skip to content

Commit

Permalink
Merge branch 'QA_4_8'
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Apr 1, 2019
2 parents 292d2db + 7a8d6c2 commit 76dca69
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Expand Up @@ -86,6 +86,8 @@ phpMyAdmin - ChangeLog
- issue #12729 Fixed sticky table header over dropdown menu
- issue #15140 Fixed edit link does not work on failed insert
- issue #14334 Fixed export table structure shows rows fields
- issue #15010 Fixed empty SQL preview modal on tbl_relation
- issue #14673 Fixed innodb & MySQL 8: DYNAMIC & COMPRESSED ROW_FORMAT missing

4.8.5 (2019-01-25)
- issue Developer debug data was saved to the PHP error log
Expand Down
34 changes: 18 additions & 16 deletions libraries/classes/Controllers/Table/RelationController.php
Expand Up @@ -132,9 +132,7 @@ public function indexAction()
}

// updates for foreign keys
if (isset($_POST['destination_foreign_db'])) {
$this->updateForForeignKeysAction();
}
$this->updateForForeignKeysAction();

// Updates for display field
if ($this->cfgRelation['displaywork'] && isset($_POST['display_field'])) {
Expand Down Expand Up @@ -246,19 +244,23 @@ public function updateForForeignKeysAction()

// (for now, one index name only; we keep the definitions if the
// foreign db is not the same)
list($html, $preview_sql_data, $display_query, $seen_error)
= $this->upd_query->updateForeignKeys(
$_POST['destination_foreign_db'],
$multi_edit_columns_name,
$_POST['destination_foreign_table'],
$_POST['destination_foreign_column'],
$this->options_array,
$this->table,
isset($this->existrel_foreign)
? $this->existrel_foreign['foreign_keys_data']
: null
);
$this->response->addHTML($html);
if (isset($_POST['destination_foreign_db'])
&& isset($_POST['destination_foreign_table'])
&& isset($_POST['destination_foreign_column'])) {
list($html, $preview_sql_data, $display_query, $seen_error)
= $this->upd_query->updateForeignKeys(
$_POST['destination_foreign_db'],
$multi_edit_columns_name,
$_POST['destination_foreign_table'],
$_POST['destination_foreign_column'],
$this->options_array,
$this->table,
isset($this->existrel_foreign)
? $this->existrel_foreign['foreign_keys_data']
: null
);
$this->response->addHTML($html);
}

// If there is a request for SQL previewing.
if (isset($_POST['preview_sql'])) {
Expand Down
7 changes: 6 additions & 1 deletion libraries/classes/Operations.php
Expand Up @@ -1290,7 +1290,12 @@ private function getPossibleRowFormat()
} else {
$innodb_file_format = '';
}
if ('Barracuda' == $innodb_file_format
/**
* Newer MySQL/MariaDB always return empty a.k.a '' on $innodb_file_format otherwise
* old versions of MySQL/MariaDB must be returning something or not empty.
* This patch is to support newer MySQL/MariaDB while also for backward compatibilities.
*/
if (( ('Barracuda' == $innodb_file_format) || ($innodb_file_format == '') )
&& $innodbEnginePlugin->supportsFilePerTable()
) {
$possible_row_formats['INNODB']['DYNAMIC'] = 'DYNAMIC';
Expand Down

0 comments on commit 76dca69

Please sign in to comment.