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
208 stars 21 forks source link

Handle `BIT(1)` as `Boolean` by Default #286

Closed jchrys closed 3 months ago

jchrys commented 3 months ago

Motivation: BIT(1) should be treated as Boolean.

Modification: set Boolean.class as `BIT(1)'s default java type.

Result: Ensures BIT(1) is handled as Boolean by default. like mysql-connector-j's implementation. Resolves #277

jchrys commented 3 months ago

type conversion chart to ref: https://dev.mysql.com/doc/connector-j/en/connector-j-reference-type-conversions.html