diff --git a/src/MysqlDataType.php b/src/MysqlDataType.php index 1c970b3..3ae3262 100644 --- a/src/MysqlDataType.php +++ b/src/MysqlDataType.php @@ -61,12 +61,15 @@ public function decodeBinary(string $bytes, int &$offset = 0, int $flags = 0): i case self::Blob: case self::TinyBlob: case self::Geometry: - case self::Bit: case self::Decimal: case self::NewDecimal: case self::Json: return self::decodeString($bytes, $offset); + case self::Bit: + return (int) self::decodeString($bytes, $offset); + + case self::LongLong: return $unsigned ? self::decodeUnsigned64($bytes, $offset)