Corey Donohoe wrote:
I currently have to support both postgres and oracle for work. I'd
like to use booleans but I ran into a wall when I found oracle didn't
support them. The fix was really small and I adopted the convention
of NUMERIC(1) being boolean. It also uses a similar approach as the
mysql driver by allowing it to be disabled if the app doesn't want to
leverage booleans.
I bounced the idea off of Michael Schoen but he thinks people might be
using NUMERIC(1) for values between 0-9. I can see his point but I
think for most the most part people would want to have this option
available for consistencies sake.
If anyone has any input on this I'd greatly appreciate it,
tests/patch/etc at http://dev.rubyonrails.org/ticket/4811
With #emulate_booleans, I'm a fan of this patch. Let me take a closer
look and I'll update my comments on the ticket.
_______________________________________________
Rails-core mailing list
Rails-core@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-core