]> git.joonet.de Git - adminer.git/commitdiff
MySQL: Fix saving bit(64) values (bug #839)
authorJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 13:57:41 +0000 (14:57 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 13:57:41 +0000 (14:57 +0100)
adminer/drivers/mysql.inc.php
changes.txt

index f2a4fed02a079f55d68e5da34b4cbe3a8473b8cd..e532d50015d4c260b83a50a51d9b06ee1a297678 100644 (file)
@@ -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_" : "");
index ebbf6140ff03cd07444f36085cdd99a5da9a3627..7b2947e7beb3d5448737b57eac2b19d62806c916 100644 (file)
@@ -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