mysqlplus/test/async_query_with_block_test.rb

7 lines
183 B
Ruby
Raw Normal View History

require File.dirname(__FILE__) + '/test_helper'
2008-10-08 16:09:47 +00:00
m = Mysql.real_connect('localhost','root','','mysql')
2008-10-08 16:09:47 +00:00
m.c_async_query( 'SELECT * FROM user' ) do |result|
puts result.inspect
end