On Thursday, September 19, 2013 5:31:49 AM UTC-7, Wesley Staples wrote:
>
> I’m attempting to connect to an iSeries database with Sequel / ODBC. 
> Everything works fine on the 32-bit version of Ubuntu and on windows 
> however for some reason using the same code on a 64-bit system I’m getting 
> the error:
> /home/helpdesk/.rvm/gems/ruby-2.0.0-p247/gems/sequel-4.2.0/lib/sequel/adapters/odbc.rb:109:in
>  
> `fetch_all': failed to allocate memory (NoMemoryError)
>         from 
> /home/helpdesk/.rvm/gems/ruby-2.0.0-p247/gems/sequel-4.2.0/lib/sequel/adapters/odbc.rb:109:in
>  
> `block in fetch_rows'
>         from 
> /home/helpdesk/.rvm/gems/ruby-2.0.0-p247/gems/sequel-4.2.0/lib/sequel/adapters/odbc.rb:42:in
>  
> `block in execute'
>         from 
> /home/helpdesk/.rvm/gems/ruby-2.0.0-p247/gems/sequel-4.2.0/lib/sequel/database/connecting.rb:229:in
>  
> `block in synchronize'
>         from 
> /home/helpdesk/.rvm/gems/ruby-2.0.0-p247/gems/sequel-4.2.0/lib/sequel/connection_pool/threaded.rb:104:in
>  
> `hold'
>         from 
> /home/helpdesk/.rvm/gems/ruby-2.0.0-p247/gems/sequel-4.2.0/lib/sequel/database/connecting.rb:229:in
>  
> `synchronize'
>         from 
> /home/helpdesk/.rvm/gems/ruby-2.0.0-p247/gems/sequel-4.2.0/lib/sequel/adapters/odbc.rb:39:in
>  
> `execute'
>         from 
> /home/helpdesk/.rvm/gems/ruby-2.0.0-p247/gems/sequel-4.2.0/lib/sequel/dataset/actions.rb:793:in
>  
> `execute'
>         from 
> /home/helpdesk/.rvm/gems/ruby-2.0.0-p247/gems/sequel-4.2.0/lib/sequel/adapters/odbc.rb:104:in
>  
> `fetch_rows'
>         from 
> /home/helpdesk/.rvm/gems/ruby-2.0.0-p247/gems/sequel-4.2.0/lib/sequel/dataset/actions.rb:143:in
>  
> `each'
>         from odbc_test.rb:7:in `<main>'
>
> I started with ruby 1.9.3 but upgraded to 2.0 with the same result. Any 
> thoughts on what I can check? 
>

The error appears to be at the odbc driver level (fetch_all here is 
ODBC::Statement#fetch_all), so you'll have to ask the ruby-odbc maintainers.

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/groups/opt_out.

Reply via email to