Subject: | quoting bit fields breaks them |
If you create a MySQL table with a field type of 'bit' and then do a query like:
$rs->search({ bit_field => 0 });
That will generate SQL like:
select * from test where bit_field = ?: '0'
However, that will not work, because '0' is not the same as 0. So you'll always get 0 records
back. The SQL generated must not quote the 0.
select * from test where bit_field = ?: 0