mirromutth/r2dbc-mysql

BOOLEAN type not working with prepared statement.

sumitsum opened this issue · 3 comments

A prepared statement of the following kind

select * from test_boolean_type where c_boolean=?

where ? is bound to string True. It returns incorrect result. It however works if integers 0 or 1 is supplied.

Tested with version 0.8.2

Some mistake on my side. closing it.

Re-opening post updating the description.

Hi there, apologies for the late reply.

A string value cannot be a bool type, this should be a user error.

Use boolean true/false instead of a string value.