From cc94d63253fd10a1e7d088c0a92c74d2ca6ba3de Mon Sep 17 00:00:00 2001 From: Ram Sin Date: Fri, 22 Nov 2024 19:16:40 +1100 Subject: [PATCH] Altered boolean decode --- .../main/java/io/asyncer/r2dbc/mysql/codec/BooleanCodec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/codec/BooleanCodec.java b/r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/codec/BooleanCodec.java index 15dbdc19..877fb4ca 100644 --- a/r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/codec/BooleanCodec.java +++ b/r2dbc-mysql/src/main/java/io/asyncer/r2dbc/mysql/codec/BooleanCodec.java @@ -65,7 +65,7 @@ public Boolean decode(ByteBuf value, MySqlReadableMetadata metadata, Class ta } throw new IllegalArgumentException("Unable to interpret string: " + s); } - + return binary || dataType == MySqlType.BIT ? value.readBoolean() : value.readByte() != '0'; }