Permalink
Browse files

PostgreSQL: Export false as 0 in PDO (bug #619)

  • Loading branch information...
vrana committed Jun 9, 2018
1 parent b98d0bc commit 2780eb01f5b100a5b4657c4688b9f44d1ef825fe
Showing with 2 additions and 1 deletion.
  1. +1 −1 adminer/include/adminer.inc.php
  2. +1 −0 changes.txt
@@ -843,7 +843,7 @@ function dumpData($table, $style, $query) {
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"
);
}
View
@@ -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)

0 comments on commit 2780eb0

Please sign in to comment.