Hi, when using single_thread Database#disconnect fails:

---------------------
irb(main):002:0> Sequel::Database.single_threaded=false
false

irb(main):004:0> DB = Sequel.connect "mysql://root:1...@localhost/mysql"
#<Sequel::MySQL::Database: "mysql://root:1...@localhost/mysql">

irb(main):005:0> DB.disconnect
[:default]

irb(main):006:0> Sequel::Database.single_threaded=true
true

irb(main):004:0> DB2 = Sequel.connect "mysql://root:1...@localhost/mysql"
#<Sequel::MySQL::Database: "mysql://root:1...@localhost/mysql">

irb(main):009:0> DB2.disconnect
ArgumentError: wrong number of arguments (1 for 0)
        from 
/usr/local/lib/ruby1.9/gems/1.9.1/gems/sequel-3.7.0/lib/sequel/database.rb:309:in
 `disconnect'
        from (irb):9
        from /usr/bin/irb:12:in `<main>'
---------------------

I'm using master branch.

-- 
Iñaki Baz Castillo <[email protected]>

--

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