WebDevelopment, ColdFusion, Railo, JS, Database and Tech-related by the Co-Founder and CEO of tunesBag.com

Tuesday, 13 July 2010

Int( boolean) will return 0 or 1

Nothing special, but that's cute ... Int( boolean ) will return 0 or 1.

This comes in very handy especially for arguments with the type boolean where the corresponding field in the database is a tinyint.

No comments: