diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index f2a4fed0..e532d500 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -1115,7 +1115,7 @@ if (!defined("DRIVER")) { $return = "UNHEX($return)"; } if ($field["type"] == "bit") { - $return = "CONV($return, 2, 10) + 0"; + $return = "CONVERT(b$return, UNSIGNED)"; } if (preg_match("~geometry|point|linestring|polygon~", $field["type"])) { $prefix = (min_version(8) ? "ST_" : ""); diff --git a/changes.txt b/changes.txt index ebbf6140..7b2947e7 100644 --- a/changes.txt +++ b/changes.txt @@ -1,4 +1,5 @@ Adminer 4.16.0-dev: +MySQL: Fix saving bit(64) values (bug #839) PostgreSQL: Preserve whitespace in EXPLAIN (bug #827) MS SQL: Foreign keys in non-default schema (bug #833) Oracle: Include tables granted by other user