From d2549f3907e39d30807ff874c48b99166beb87a3 Mon Sep 17 00:00:00 2001 From: Roger Pack Date: Sat, 20 Dec 2008 23:07:21 +0000 Subject: [PATCH] remove test output --- ext/mysql.c | 7 +++---- test/test_parsing_while_response_is_being_read.rb | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ext/mysql.c b/ext/mysql.c index d885e02..6fa282f 100644 --- a/ext/mysql.c +++ b/ext/mysql.c @@ -322,13 +322,12 @@ static VALUE real_connect(int argc, VALUE* argv, VALUE klass) /* actually gets r obj = Data_Make_Struct(klass, struct mysql, 0, free_mysql, myp); #if MYSQL_VERSION_ID >= 32200 - printf("conn5 -- \n"); mysql_init(&myp->handler); /* we get here */ -#ifdef HAVE_TBR +# ifdef HAVE_TBR if( (int) rb_thread_blocking_region_variable_params(10, &mysql_real_connect, 8, &myp->handler, h, u, p, d, pp, s, f) == NULL) -#else +# else if(mysql_real_connect(&myp->handler, h, u, p, d, pp, s, f) == NULL) -#endif +# endif #elif MYSQL_VERSION_ID >= 32115 if (mysql_real_connect(&myp->handler, h, u, p, pp, s, f) == NULL) #else diff --git a/test/test_parsing_while_response_is_being_read.rb b/test/test_parsing_while_response_is_being_read.rb index 3f6883f..7f4d237 100644 --- a/test/test_parsing_while_response_is_being_read.rb +++ b/test/test_parsing_while_response_is_being_read.rb @@ -5,7 +5,7 @@ # from .82s to .62s # you can experiment with it by changing the query here to be a long one, and toggling the do_the_use_query_optimization variable # this also has the interesting property of 'freeing' Ruby to do thread changes mid-query. - +require 'rubygems' require 'mysqlplus' do_the_use_query_optimization = true