2009/12/10 Jeremy Evans <[email protected]>

> On Dec 9, 7:43 pm, Christer Nilsson <[email protected]>
> wrote:
> > Your suggestion
> >
> > class Company < Sequel::Model(:dbo__SYS_COMPANY.qualify(:LX))
> > end
>
> My bad.  Try:
>
> class Company < Sequel::Model(DB[:dbo__SYS_COMPANY.qualify(:LX)])
> end
>
> Where DB is the Sequel::Database object.
>
> Your way will work fine assuming you don't want to quote identifiers,
> but the above should allow it to work while quoting identifiers.
>
> 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]<sequel-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/sequel-talk?hl=en.
>
>
>

Yes, that works!

But your suggestion is less readable.
I guess you have a reason recommending it?

class Company < Sequel::Model(:'LX.dbo.SYS_COMPANY')
end

class Company < Sequel::Model(DB[:dbo__SYS_COMPANY.qualify(:LX)])
end

Christer

--

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