return stripslashes(str_replace("''", "'", $match[1]));
}, $default);
}
+ if (!$maria && preg_match('~binary~', $match_type[1]) && preg_match('~^0x(\w*)$~', $default, $match)) {
+ $default = preg_replace_callback('~..~', function ($match) {
+ return chr(hexdec($match[0]));
+ }, $match[1]);
+ }
$return[$field] = array(
"field" => $field,
"full_type" => $type,
Adminer dev:
+MySQL: Display default values of binary columns
Adminer 5.0.4 (released 2025-03-11):
Compile: Fix shortening in private methods (regression from 5.0.3)