BOOLEAN type not working with prepared statement.
sumitsum opened this issue · 3 comments
sumitsum commented
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
sumitsum commented
Some mistake on my side. closing it.
sumitsum commented
Re-opening post updating the description.
mirromutth commented
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.