On Thursday, October 8, 2015 at 10:43:41 AM UTC-7, Nicholas Variz wrote: > > I am sure I am missing something obvious here, but I have looked for a > solution on http://sequel.jeremyevans.net/documentation.html. > > I have a table named 'VIEW_SomeTableName' that I want to wrap with a > sequel model. > I defined this class: > > ' class MyClass < Sequel::Model(:View_SomeTableName) ' > > > but using it results in a Sequel::DatabaseError: TinyTds::Error: Invalid > object name error. > > > If i instead just do a DB.fetch('select * View_SomeTableName') everything > works. >
If you really have a mixed case name in a MSSQL server, you'll need to turn off the automatic folding to uppercase: DB.identifier_input_method = DB.identifier_output_method = nil Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
