]> git.joonet.de Git - adminer.git/commitdiff
Don't quote bit type in export
authorladislav@marek.su <ladislav@marek.su>
Thu, 5 Jan 2012 10:31:19 +0000 (11:31 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 24 Feb 2012 06:58:40 +0000 (22:58 -0800)
adminer/include/adminer.inc.php
changes.txt

index 68009afed81045ef0a23fa9edf73f91456adb316..578868807d1f84b474956caced4e97e4dbafe3f5 100644 (file)
@@ -659,7 +659,7 @@ DROP PROCEDURE adminer_alter;
                                                        $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") {
index 641d48090b007fb5502327653d67c1a660b5ca4d..eb575bc026b9e17af36c3ec3119fb0b1ead001b6 100644 (file)
@@ -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