Noah Dedmore wrote:
> I'm attempting to access a MySQL BIT(1) column with b'1' as the data in
> the case of a true boolean from within activerecord and am unable to get
> any output.  The table was created by Hibernate (which uses BIT as it's
> boolean type).
> 
> I've done a considerable amount of searching on this but have not been
> able to find an answer.  Am I missing something here or is this type of
> field unsupported?  The docs say it maps to a string type but I never
> get any result when accessing the attributes and attempts at casting
> haven't gotten me anywhere.

Nevermind on this... Figured it out...  The spreadsheet I was putting 
these in was removing the value due to the slashes used in the string 
that was being returned.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to