Don't quote bit type in export

This commit is contained in:
ladislav@marek.su 2012-01-05 11:31:19 +01:00 committed by Jakub Vrana
parent 9fd2880968
commit 41e197ac06
2 changed files with 2 additions and 1 deletions

View file

@ -659,7 +659,7 @@ DROP PROCEDURE adminer_alter;
$insert = "INSERT INTO " . table($table) . " (" . implode(", ", array_map('idf_escape', array_keys($row))) . ") VALUES"; $insert = "INSERT INTO " . table($table) . " (" . implode(", ", array_map('idf_escape', array_keys($row))) . ") VALUES";
} }
foreach ($row as $key => $val) { 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); $s = implode(",\t", $row);
if ($style == "INSERT+UPDATE") { if ($style == "INSERT+UPDATE") {

View file

@ -7,6 +7,7 @@ Trim table and column names (bug #3405309)
Error message with no response from server in AJAX Error message with no response from server in AJAX
Esc to cancel AJAX request Esc to cancel AJAX request
Move AJAX loading indicator to the right Move AJAX loading indicator to the right
Don't quote bit type in export
Ability to disable export (customization) Ability to disable export (customization)
MySQL: set autocommit after connect MySQL: set autocommit after connect
PostgreSQL: fix alter foreign key PostgreSQL: fix alter foreign key