use c_async_query by default

This commit is contained in:
unknown 2009-01-12 11:18:33 -07:00
parent b80dcb437e
commit edff42ab2c
2 changed files with 6 additions and 1 deletions

View File

@ -5,3 +5,6 @@ Is there a quick, cheap, easy way to test for writability so we don't have to us
Docs for how to use with rails, etc. [there is mysqlplus_adapter, so maybe we're good there].
Merge in lourens' branch -- I like the double check for not using send_query twice in a row! [rdp]
critical todo list:

View File

@ -2,11 +2,13 @@ require 'mysql'
class Mysql
def async_query(sql, timeout = nil)
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
alias_method :async_query, :c_async_query
end