I have a RoR + MySQL setup. In the database there is a Tinyint field t. When I read the value of t from Rails I get true or false because a Tinyint field is interpreted by Rails as boolean. So far so good.
How do I read this field t as an actual integer from Rails?
SELECT CONVERT(tinyintcolumn, [UN]SIGNED) FROM my_table?