[Mono-list] Cast a char(1) to a boolean

Nick Loeve mono@trickie.org
Sat, 23 Oct 2004 15:38:33 +1000

If you use version 4.1 (probably don't though) there is now a boolean 
synonym that refers to tinyint(1).

There is also a type 'Bit'


On 23/10/2004, at 3:05 PM, Eric Damron wrote:

> I was told to use a char(1) in a MySQL database since it doesn't have 
> a boolean type.  I retrieve a char(1) field but I can't seem to cast 
> it to be a boolean.  How is this done?
> Thanks.
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list