On Dec 4, 2:40 pm, John Firebaugh <[email protected]> wrote:
> Normally Model.set_dataset will not throw even if getting the schema
> fails (for example because the database table doesn't yet exist). The
> BooleanReaders overload of set_dataset changes this behavior, because
> it makes an unguarded call to Model.columns (via
> create_boolean_readers).
>
> Is this a bug? It is causing me some trouble. For example, if you do
> Sequel::Model.plugin :boolean_readers, then you can't use
> Sequel::Model(:table_name) unless the underlying table is guaranteed
> to exist (it will raise otherwise).

This is a bug.  If it doesn't raise an error without the plugin, it
shouldn't raise an error with it.

Is this something you want to work on?  If not, I should be able to
get to it by next week.

Jeremy

--

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.


Reply via email to