From eb0d5c3c5e1478282c0bc1f20a6a685508dda7d5 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 23 Feb 2025 17:42:23 +0100 Subject: [PATCH] Print SQL errors as comments in export --- adminer/include/functions.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/include/functions.inc.php b/adminer/include/functions.inc.php index 397b7266..fb3c745e 100644 --- a/adminer/include/functions.inc.php +++ b/adminer/include/functions.inc.php @@ -392,7 +392,7 @@ function get_rows($query, $connection2 = null, $error = "

") { while ($row = $result->fetch_assoc()) { $return[] = $row; } - } elseif (!$result && !is_object($connection2) && $error && defined("PAGE_HEADER")) { + } elseif (!$result && !is_object($connection2) && $error && (defined("PAGE_HEADER") || $error == "-- ")) { echo $error . error() . "\n"; } return $return; diff --git a/changes.txt b/changes.txt index 02a6d2ff..663eb9b9 100644 --- a/changes.txt +++ b/changes.txt @@ -1,6 +1,7 @@ Adminer 4.17.0-dev: Hide index column options by default Offer original values in multi-row editing (regression from 4.16.0) +Print SQL errors as comments in export (regression from 3.2.0) MySQL, PostgreSQL, MS SQL: Support CHECK constraint MySQL: Show comments at routine call (bug #874) MySQL: Don't offer empty enum value in edit