Joel VanderWerf wrote:
> Jeremy Evans wrote:
>> * Database#<< now always returns nil. Before, the return value was
>> adapter dependent.
>
> I was going to ask why not return self, like other #<< in ruby, but then
> I ran into this with Database#<< :
>
> The Sequel docs have this example:
>
> DB << "create table t (a text, b text)"
> DB << "insert into t values ('a', 'b')"
Sorry, I was not creating an in-memory database correctly (and I messed
up the text in the last email).
But my first question remains: why not return self from #<<, so you can
chain methods. Not that it matters much, but it seems more consistent.
--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---