1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +02:00

PostgreSQL: Quote array values in export (bug #621)

This commit is contained in:
Jakub Vrana
2018-09-19 09:49:56 +02:00
parent 65c52735fb
commit cd3231b4af
2 changed files with 2 additions and 1 deletions

View 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"
);
}