Permalink
Browse files

Data type bit is not quoted in SQL dump

  • Loading branch information...
1 parent fd7e8cb commit 3af5df7bd8d78716cbfa411c73304397cdf3beee @lm committed Jan 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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") {

0 comments on commit 3af5df7

Please sign in to comment.