Skip to content

Commit

Permalink
MySQL: Always set foreign_key_checks in export
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Dec 9, 2019
1 parent 8706bc7 commit 5da5b75
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions adminer/dump.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
if ($jush == "sql") {
echo "SET NAMES utf8;
SET time_zone = '+00:00';
" . ($_POST["data_style"] ? "SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
SET foreign_key_checks = 0;
" . ($_POST["data_style"] ? "SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
" : "") . "
";
$connection->query("SET time_zone = '+00:00';");
Expand Down
2 changes: 1 addition & 1 deletion adminer/include/version.inc.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
$VERSION = "4.7.5";
$VERSION = "4.7.6-dev";
3 changes: 3 additions & 0 deletions changes.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Adminer 4.7.6-dev:
MySQL: Always set foreign_key_checks in export

Adminer 4.7.5 (released 2019-11-13):
Add id="" to cells with failed inline edit (bug #708)
PostgreSQL: Fix getting default value in PostgreSQL 12 (bug #719)
Expand Down

0 comments on commit 5da5b75

Please sign in to comment.