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

Print SQL errors as comments in export

This commit is contained in:
Jakub Vrana
2025-02-23 17:42:23 +01:00
parent 04d707ef94
commit eb0d5c3c5e
2 changed files with 2 additions and 1 deletions

View File

@@ -392,7 +392,7 @@ function get_rows($query, $connection2 = null, $error = "<p class='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;

View File

@@ -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