Skip to content

Commit

Permalink
Altered boolean decode
Browse files Browse the repository at this point in the history
  • Loading branch information
svats0001 committed Nov 22, 2024
1 parent 074dcc8 commit cc94d63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}

Expand Down

0 comments on commit cc94d63

Please sign in to comment.