diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 390098a4..11fe6bfa 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)) + ? unconvert_field($field, preg_match(number_type(), $field["type"]) && $val != '' ? $val : q(($val === false ? 0 : $val))) : "NULL" ); } diff --git a/changes.txt b/changes.txt index cb6c0215..0c6cd0de 100644 --- a/changes.txt +++ b/changes.txt @@ -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)