Are bools bools in MySQL - no they're not! Lets show this:
mysql> show create table healthcheck\G
*************************** 1. row ***************************
Table: healthcheck
Create Table: CREATE TABLE `healthcheck` (
`isworking` tinyint(1) DEFAULT NULL
) ENGINE=MEMORY DEFAULT CHARSET=latin1
1 row in set (0.00 sec)
So a 'bool' in MySQL is actually a signed tinyint that has range -128 to 127. This information is actually hidden away in the bowels of the MySQL documentation at:http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html"[bool] These types are synonyms for [Read more...]