asyncer-io / r2dbc-mysql

Reactive Relational Database Connectivity for MySQL. The official successor to mirromutth/r2dbc-mysql(dev.miku:r2dbc-mysql).
https://r2dbc.io
Apache License 2.0
196 stars 21 forks source link

[feature] return a scalar value instead of a buffer for bit fields, such as Byte. #277

Closed underbell closed 2 months ago

underbell commented 3 months ago

Is your feature request related to a problem? Please describe. r2dbc has ConverterNotFoundException [java.nio.HeapByteBuffer] to type [java.lang.Boolean] on boot 3.3.0 https://github.com/spring-projects/spring-data-relational/issues/1824

Describe the solution you'd like return a scalar value instead of a buffer for bit fields, such as Byte.

Additional context https://github.com/spring-projects/spring-data-relational/issues/1824#issuecomment-2185738223

jchrys commented 2 months ago

@underbell Thanks for reporting :D

jchrys commented 2 months ago

BIT(1) is should be represented as java.lang.Boolean just like mysql connector-j's implementation.

jchrys commented 2 months ago

ref https://docs.oracle.com/cd/E17952_01/connector-j-en/connector-j-reference-type-conversions.html