From cd3231b4af94d0f69c73be6aecb37b966c736215 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 19 Sep 2018 09:49:56 +0200 Subject: [PATCH] PostgreSQL: Quote array values in export (bug #621) --- adminer/include/adminer.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 4e55bf99..a5963b3a 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -843,7 +843,7 @@ class Adminer { foreach ($row as $key => $val) { $field = $fields[$key]; $row[$key] = ($val !== null - ? unconvert_field($field, preg_match(number_type(), $field["type"]) && $val != '' ? $val : q(($val === false ? 0 : $val))) + ? unconvert_field($field, preg_match(number_type(), $field["type"]) && $val != '' && !preg_match('~\[~', $field["full_type"]) ? $val : q(($val === false ? 0 : $val))) : "NULL" ); } diff --git a/changes.txt b/changes.txt index d7c53a25..306752cd 100644 --- a/changes.txt +++ b/changes.txt @@ -6,6 +6,7 @@ Fix function change with set data type Increase username maxlength to 80 (bug #623) Make maxlength in all fields a soft limit MySQL: Support foreign keys created with ANSI quotes (bug #620) +PostgreSQL: Quote array values in export (bug #621) MSSQL: Pass database when connecting ClickHouse: Connect, databases list, tables list, select, SQL command Georgian translation