From b558ec8ecf48d2090cee58415852fb79be487300 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 6 Feb 2021 12:30:39 +0100 Subject: [PATCH] Do not export names in quotes with sql_mode='ANSI_QUOTES' (bug #749) --- adminer/dump.inc.php | 3 ++- changes.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/adminer/dump.inc.php b/adminer/dump.inc.php index f6e9a48b..998cce88 100644 --- a/adminer/dump.inc.php +++ b/adminer/dump.inc.php @@ -22,7 +22,8 @@ SET foreign_key_checks = 0; " . ($_POST["data_style"] ? "SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; " : "") . " "; - $connection->query("SET time_zone = '+00:00';"); + $connection->query("SET time_zone = '+00:00'"); + $connection->query("SET sql_mode = ''"); } } diff --git a/changes.txt b/changes.txt index d3ddbdd5..ec16cd74 100644 --- a/changes.txt +++ b/changes.txt @@ -1,5 +1,6 @@ Adminer 4.7.9-dev: Elasticsearch, ClickHouse: Do not print response if HTTP code is not 200 +MySQL: Do not export names in quotes with sql_mode='ANSI_QUOTES' (bug #749) PostgreSQL: Export all FKs after all CREATE TABLE (PR #351) PostgreSQL: Fix dollar-quoted syntax highlighting (bug #738) PostgreSQL 10: Support GENERATED ALWAYS BY IDENTITY (PR #386)