2009/9/4 Jeremy Evans <[email protected]>: > > On Sep 3, 4:09 pm, Iñaki Baz Castillo <[email protected]> wrote: >> Hi, from a MySQL table I get a blob field (with attribute "BINARY"). But in >> fact it's a string (a XML document). >> >> To extract the content I use #to_s and it seems to work, but I don't see it >> documented. >> >> Am I right? > > It should be returned as a Sequel::SQL::Blob instance. but that > depends on the adapter (the native adapter and JDBC adapter does, the > DataObjects adapter does not). Sequel::SQL::Blob is a string subclass, > so this shouldn't cause problems in general. > > Can you give an example where this causes problems?
It doesn't cause problems. I just wanted to know if #to_s is the good way to get the string value. Thanks a lot. -- Iñaki Baz Castillo <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-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/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
