Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't quote bit type in export
  • Loading branch information
lm authored and vrana committed Feb 24, 2012
1 parent 9fd2880 commit 41e197a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/include/adminer.inc.php
Expand Up @@ -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") {
Expand Down
1 change: 1 addition & 0 deletions changes.txt
Expand Up @@ -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
Expand Down

0 comments on commit 41e197a

Please sign in to comment.