]> git.joonet.de Git - adminer.git/commitdiff
MySQL: Always set foreign_key_checks in export
authorJakub Vrana <jakub@vrana.cz>
Mon, 9 Dec 2019 12:20:24 +0000 (13:20 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 9 Dec 2019 12:20:24 +0000 (13:20 +0100)
adminer/dump.inc.php
adminer/include/version.inc.php
changes.txt

index 596ef73a3cde4107323254b61f7b4a3700e152bb..e758f458f7aecbca8d36ba2622aa1a5dd3e552de 100644 (file)
@@ -18,8 +18,8 @@ if ($_POST && !$error) {
                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';");
index 0913fd1cd07c670116f66c8c4686c3ecc248d745..bf891bd8a2213379d9b18d6c4e9535a75c742593 100644 (file)
@@ -1,2 +1,2 @@
 <?php
-$VERSION = "4.7.5";
+$VERSION = "4.7.6-dev";
index 2f33ed5ab8b2a413d5c3dd78aafa0ffde61f527b..c19cfa2441541113250db62443938051fd618ee9 100644 (file)
@@ -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)