]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Quote array values in export (bug #621)
authorJakub Vrana <jakub@vrana.cz>
Wed, 19 Sep 2018 07:49:56 +0000 (09:49 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Sep 2018 07:49:56 +0000 (09:49 +0200)
adminer/include/adminer.inc.php
changes.txt

index 4e55bf998f8b6e23aba96484d6b618e28e67e3df..a5963b3a29b08566b24ecafeab728b3ec88e02e5 100644 (file)
@@ -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"
                                                        );
                                                }
index d7c53a25b5b95bc8f8b21dc1643b20bc69dbe3e3..306752cd9e4f45f41a0db925ebc3ce3e4e3b215f 100644 (file)
@@ -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