]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Export false as 0 in PDO (bug #619)
authorJakub Vrana <jakub@vrana.cz>
Sat, 9 Jun 2018 10:45:17 +0000 (12:45 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sat, 9 Jun 2018 10:45:17 +0000 (12:45 +0200)
adminer/include/adminer.inc.php
changes.txt

index 390098a40204daea8cc87c29ac98587035e2de1b..11fe6bfaf276a2b377dd6557a3dccbd01d3f9d06 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))
+                                                               ? unconvert_field($field, preg_match(number_type(), $field["type"]) && $val != '' ? $val : q(($val === false ? 0 : $val)))
                                                                : "NULL"
                                                        );
                                                }
index cb6c0215dcac6406a5e744dbc2db0b0a64703fa7..0c6cd0de8b48399bf6ac7c7322419da6f5c7d640 100644 (file)
@@ -12,6 +12,7 @@ MySQL: Order database names in MySQL 8 (bug #613)
 PostgreSQL: Add SQL operator to search
 PostgreSQL: Fix editing data in views (bug #605, regression from 4.6.0)
 PostgreSQL: Do not cast date/time/number/uuid searches to text (bug #608)
+PostgreSQL: Export false as 0 in PDO (bug #619)
 MS SQL: Support port with sqlsrc
 Editor: Do not check boolean checkboxes with false in PostgreSQL (bug #607)