]> git.joonet.de Git - adminer.git/commitdiff
Do not export names in quotes with sql_mode='ANSI_QUOTES' (bug #749)
authorJakub Vrana <jakub@vrana.cz>
Sat, 6 Feb 2021 11:30:39 +0000 (12:30 +0100)
committerJakub Vrana <jakub@vrana.cz>
Sat, 6 Feb 2021 11:30:39 +0000 (12:30 +0100)
adminer/dump.inc.php
changes.txt

index f6e9a48b13c17af8b49cbd520b3a27b8b326eb33..998cce8895106ce21be0797e2b130d955e97ea09 100644 (file)
@@ -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 = ''");
                }
        }
 
index d3ddbdd5e4dae2a7acca8b1aaaeb41094ef512be..ec16cd748050fa34b5ae61e813d538a50eed3e0c 100644 (file)
@@ -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)