diff --git a/src/MysqlDataType.php b/src/MysqlDataType.php index 21ed687..139fa86 100644 --- a/src/MysqlDataType.php +++ b/src/MysqlDataType.php @@ -518,7 +518,7 @@ public static function encodeInt(int $int): string public static function encodeInt8(int $int): string { - return \chr($int); + return \pack("C", $int); } public static function encodeInt16(int $int): string