On Nov 3, 10:28 am, mendozza <[email protected]> wrote:
> I'm not experienced with Sequel, so I don´t know if there is some
> incompatibility between Sequel version 3.29 and TinyTDS version
> 0.5.0 . I'm getting a weird error message:
>
> C:/Ruby192/lib/ruby/gems/1.9.1/gems/sequel-3.29.0/lib/sequel/adapters/
> tinytds.rb:227:in `block in fetch_rows': undefined local variable or
> method `offset' for #<Sequel::TinyTDS::Dataset: "SELECT * FROM
> [MyTable]"> (NameError)
>
> Code I'm trying is:
>
> require 'pp'
> require 'rubygems'
> require 'sequel'
>
> Sequel.identifier_input_method = nil
> Sequel.identifier_output_method = nil
> DB = Sequel.connect(:adapter=>'tinytds',
>   :host=>'locahost',
>   :database=>'test',
>   :user=>'dbuser',
>   :password=>'dbpass')
> ds = DB[:AccTelefonica]
> pp ds.all
>
> Anyone with a problem like this?

That's a bug.  It wasn't caught because the test suite never
specifically tests with identifier_output_method = nil.  I'll push a
bug fix up to GitHub in later today, after I add an integration test
for it.

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