mysqlplus/lib/mysqlplus.rb

15 lines
271 B
Ruby
Raw Normal View History

require 'mysql'
class Mysql
2009-01-12 18:18:33 +00:00
def ruby_async_query(sql, timeout = nil) # known to deadlock TODO
send_query(sql)
select [ (@sockets ||= {})[socket] ||= IO.new(socket) ], nil, nil, nil
get_result
end
2009-01-12 18:18:33 +00:00
alias_method :async_query, :c_async_query
end
2008-09-06 01:59:20 +00:00