1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +02:00

MySQL: Always set foreign_key_checks in export

This commit is contained in:
Jakub Vrana
2019-12-09 13:20:24 +01:00
parent 8706bc7c0f
commit 5da5b75536
3 changed files with 6 additions and 3 deletions

View 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';");