From 41e197ac0673c0e617d2ecd48e25a00271f4b5e4 Mon Sep 17 00:00:00 2001 From: "ladislav@marek.su" Date: Thu, 5 Jan 2012 11:31:19 +0100 Subject: [PATCH] Don't quote bit type in export --- adminer/include/adminer.inc.php | 2 +- changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 68009afed..578868807 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -659,7 +659,7 @@ function dumpData($table, $style, $query) { $insert = "INSERT INTO " . table($table) . " (" . implode(", ", array_map('idf_escape', array_keys($row))) . ") VALUES"; } foreach ($row as $key => $val) { - $row[$key] = (isset($val) ? (ereg('int|float|double|decimal', $fields[$key]["type"]) ? $val : q($val)) : "NULL"); //! columns looking like functions + $row[$key] = (isset($val) ? (ereg('int|float|double|decimal|bit', $fields[$key]["type"]) ? $val : q($val)) : "NULL"); //! columns looking like functions } $s = implode(",\t", $row); if ($style == "INSERT+UPDATE") { diff --git a/changes.txt b/changes.txt index 641d48090..eb575bc02 100644 --- a/changes.txt +++ b/changes.txt @@ -7,6 +7,7 @@ Trim table and column names (bug #3405309) Error message with no response from server in AJAX Esc to cancel AJAX request Move AJAX loading indicator to the right +Don't quote bit type in export Ability to disable export (customization) MySQL: set autocommit after connect PostgreSQL: fix alter foreign key