diff --git a/ext/mysql2/mysql2_ext.h b/ext/mysql2/mysql2_ext.h index f53f4b4a1..3995c3698 100644 --- a/ext/mysql2/mysql2_ext.h +++ b/ext/mysql2/mysql2_ext.h @@ -11,12 +11,10 @@ void Init_mysql2(void); #ifdef HAVE_MYSQL_H #include -#include #include #include #else #include -#include #include #include #endif diff --git a/spec/mysql2/client_spec.rb b/spec/mysql2/client_spec.rb index c5ae66107..44c311db7 100644 --- a/spec/mysql2/client_spec.rb +++ b/spec/mysql2/client_spec.rb @@ -604,8 +604,8 @@ def run_gc end it "should handle Timeouts without leaving the connection hanging if reconnect is true" do - if RUBY_PLATFORM.include?('darwin') && Mysql2::Client.info.fetch(:version).start_with?('5.5') - pending('libmysqlclient 5.5 on OSX is afflicted by an unknown bug that breaks this test. See #633 and #634.') + if RUBY_PLATFORM.include?('darwin') && Mysql2::Client.server_info.fetch(:version).start_with?('5.5') + pending('MySQL 5.5 on OSX is afflicted by an unknown bug that breaks this test. See #633 and #634.') end client = new_client(:reconnect => true) @@ -615,8 +615,8 @@ def run_gc end it "should handle Timeouts without leaving the connection hanging if reconnect is set to true after construction" do - if RUBY_PLATFORM.include?('darwin') && Mysql2::Client.info.fetch(:version).start_with?('5.5') - pending('libmysqlclient 5.5 on OSX is afflicted by an unknown bug that breaks this test. See #633 and #634.') + if RUBY_PLATFORM.include?('darwin') && Mysql2::Client.server_info.fetch(:version).start_with?('5.5') + pending('MySQL 5.5 on OSX is afflicted by an unknown bug that breaks this test. See #633 and #634.') end client = new_client