1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 17:44:07 +02:00

MySQL: Fix saving bit(64) values (bug #839)

This commit is contained in:
Jakub Vrana
2025-02-19 14:57:41 +01:00
parent 9def8d7f95
commit df451f4374
2 changed files with 2 additions and 1 deletions

View 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_" : "");