This is my complete program:
=====================
require 'sequel'
DB = Sequel.mysql('sonar', :user => 'user', :password =>
'password', :host =>'localhost')
trees = DB[:tbltree].all
=====================

and this is the error message:
=====================
C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/adapters/
mysql.rb:157:
in `query': Mysql::Error: Commands out of sync; you can't run this
command now (
Sequel::DatabaseDisconnectError)
        from C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/
adapters/
mysql.rb:157:in `_execute'
        from C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/
adapters/
mysql.rb:138:in `execute'
        from C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/
connectio
n_pool.rb:112:in `hold'
        from C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/
database.
rb:481:in `synchronize'
        from C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/
adapters/
mysql.rb:138:in `execute'
        from C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/
dataset.r
b:333:in `execute'
        from C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/
adapters/
mysql.rb:359:in `execute'
        from C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/
adapters/
mysql.rb:315:in `fetch_rows'
        from C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/
dataset.r
b:189:in `each'
        from C:/Ruby186/lib/ruby/gems/1.8/gems/sequel-3.4.0/lib/sequel/
dataset.r
b:123:in `all'
        from app.rb:22
=====================
mysql  Ver 14.14 Distrib 5.1.39, for Win32 (ia32)

What is wrong here?


--~--~---------~--~----~------------~-------~--~----~
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