I recollect bumping into this once and it was because mySQL did not have
a boolean field so the TinyInt one was used as a substitute.
It was a while back so I don't know if that applies to the current versions.
--
Yours,
Kym Kovan
mbcomms.net.au
/micha
P.s. Railo never rewrite data from jdbc drivers, Railo only convert if
needed, for example clob to string, but numbers are always untouched
by Railo.
2010/8/23, Kym Kovan <dev-...@mbcomms.net.au>:
That's not entirely correct - the 1 is a byte, not a bit, so you can
have 0..255 or -128..127 in a TINYINT(1) column.
( See here: http://dev.mysql.com/doc/refman/5.5/en/numeric-types.html )
As Paolo says, TINYINT is often *used* for storing booleans (a BOOL is
an alias for it when creating a table), but it is still an 8-bit
integer field, not a 1-bit boolean.
( Also see: http://dev.mysql.com/doc/refman/5.5/en/other-vendor-data-types.html
)
So, if a tinyint column only returns 1 or 0 then there's a bug
somewhere, but it sounds likely the bug is in the JDBC driver?