{"action":"opened","issue":{"url":"https://api.github.com/repos/brianmario/mysql2/issues/633","labels_url":"https://api.github.com/repos/brianmario/mysql2/issues/633/labels{/name}","comments_url":"https://api.github.com/repos/brianmario/mysql2/issues/633/comments","events_url":"https://api.github.com/repos/brianmario/mysql2/issues/633/events","html_url":"https://github.com/brianmario/mysql2/issues/633","id":86929725,"number":633,"title":"Tests fails with MySQL 5.5 on OSX","user":{"login":"tamird","id":1535036,"avatar_url":"https://avatars.githubusercontent.com/u/1535036?v=3","gravatar_id":"","url":"https://api.github.com/users/tamird","html_url":"https://github.com/tamird","followers_url":"https://api.github.com/users/tamird/followers","following_url":"https://api.github.com/users/tamird/following{/other_user}","gists_url":"https://api.github.com/users/tamird/gists{/gist_id}","starred_url":"https://api.github.com/users/tamird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamird/subscriptions","organizations_url":"https://api.github.com/users/tamird/orgs","repos_url":"https://api.github.com/users/tamird/repos","events_url":"https://api.github.com/users/tamird/events{/privacy}","received_events_url":"https://api.github.com/users/tamird/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-10T11:08:25Z","updated_at":"2015-06-10T11:08:25Z","closed_at":null,"body":"Below output is with 1.9.3 but the same error happens with 2.2.2 as well.\r\n\r\n```\r\n$ git clean -dxf && PATH=$(brew --prefix mysql55)/bin:$PATH bundle exec rake\r\nRemoving Gemfile.lock\r\nRemoving lib/mysql2/mysql2.bundle\r\nRemoving spec/configuration.yml\r\nRemoving spec/my.cnf\r\nRemoving tmp/\r\nmkdir -p tmp/x86_64-darwin14.3.0/mysql2/1.9.3\r\ncd tmp/x86_64-darwin14.3.0/mysql2/1.9.3\r\n/Users/tamird/.rubies/ruby-1.9.3-p547/bin/ruby -I. ../../../../ext/mysql2/extconf.rb\r\nchecking for ruby/thread.h... no\r\nchecking for rb_thread_blocking_region()... yes\r\nchecking for rb_wait_for_single_fd()... yes\r\nchecking for rb_hash_dup()... yes\r\nchecking for rb_intern3()... yes\r\n-----\r\nUsing mysql_config at /usr/local/opt/mysql55/bin/mysql_config\r\n-----\r\nchecking for mysql.h... yes\r\nchecking for errmsg.h... yes\r\nchecking for mysqld_error.h... yes\r\n-----\r\nSetting rpath to /usr/local/opt/mysql55/lib\r\n-----\r\ncreating Makefile\r\ncd -\r\ncd tmp/x86_64-darwin14.3.0/mysql2/1.9.3\r\nmake\r\ncompiling ../../../../ext/mysql2/client.c\r\ncompiling ../../../../ext/mysql2/infile.c\r\ncompiling ../../../../ext/mysql2/mysql2_ext.c\r\ncompiling ../../../../ext/mysql2/result.c\r\ncompiling ../../../../ext/mysql2/statement.c\r\nlinking shared-object mysql2/mysql2.bundle\r\ncd -\r\nmkdir -p tmp/x86_64-darwin14.3.0/stage/lib/mysql2\r\ncp LICENSE tmp/x86_64-darwin14.3.0/stage/LICENSE\r\ncp README.md tmp/x86_64-darwin14.3.0/stage/README.md\r\nmkdir -p tmp/x86_64-darwin14.3.0/stage/examples\r\ncp examples/eventmachine.rb tmp/x86_64-darwin14.3.0/stage/examples/eventmachine.rb\r\ncp examples/threaded.rb tmp/x86_64-darwin14.3.0/stage/examples/threaded.rb\r\nmkdir -p tmp/x86_64-darwin14.3.0/stage/ext/mysql2\r\ncp ext/mysql2/client.c tmp/x86_64-darwin14.3.0/stage/ext/mysql2/client.c\r\ncp ext/mysql2/client.h tmp/x86_64-darwin14.3.0/stage/ext/mysql2/client.h\r\ncp ext/mysql2/extconf.rb tmp/x86_64-darwin14.3.0/stage/ext/mysql2/extconf.rb\r\ncp ext/mysql2/infile.c tmp/x86_64-darwin14.3.0/stage/ext/mysql2/infile.c\r\ncp ext/mysql2/infile.h tmp/x86_64-darwin14.3.0/stage/ext/mysql2/infile.h\r\ncp ext/mysql2/mysql2_ext.c tmp/x86_64-darwin14.3.0/stage/ext/mysql2/mysql2_ext.c\r\ncp ext/mysql2/mysql2_ext.h tmp/x86_64-darwin14.3.0/stage/ext/mysql2/mysql2_ext.h\r\ncp ext/mysql2/mysql_enc_name_to_ruby.h tmp/x86_64-darwin14.3.0/stage/ext/mysql2/mysql_enc_name_to_ruby.h\r\ncp ext/mysql2/mysql_enc_to_ruby.h tmp/x86_64-darwin14.3.0/stage/ext/mysql2/mysql_enc_to_ruby.h\r\ncp ext/mysql2/result.c tmp/x86_64-darwin14.3.0/stage/ext/mysql2/result.c\r\ncp ext/mysql2/result.h tmp/x86_64-darwin14.3.0/stage/ext/mysql2/result.h\r\ncp ext/mysql2/statement.c tmp/x86_64-darwin14.3.0/stage/ext/mysql2/statement.c\r\ncp ext/mysql2/statement.h tmp/x86_64-darwin14.3.0/stage/ext/mysql2/statement.h\r\ncp ext/mysql2/wait_for_single_fd.h tmp/x86_64-darwin14.3.0/stage/ext/mysql2/wait_for_single_fd.h\r\ncp lib/mysql2.rb tmp/x86_64-darwin14.3.0/stage/lib/mysql2.rb\r\ncp lib/mysql2/client.rb tmp/x86_64-darwin14.3.0/stage/lib/mysql2/client.rb\r\ncp lib/mysql2/console.rb tmp/x86_64-darwin14.3.0/stage/lib/mysql2/console.rb\r\ncp lib/mysql2/em.rb tmp/x86_64-darwin14.3.0/stage/lib/mysql2/em.rb\r\ncp lib/mysql2/error.rb tmp/x86_64-darwin14.3.0/stage/lib/mysql2/error.rb\r\ncp lib/mysql2/field.rb tmp/x86_64-darwin14.3.0/stage/lib/mysql2/field.rb\r\ncp lib/mysql2/result.rb tmp/x86_64-darwin14.3.0/stage/lib/mysql2/result.rb\r\ncp lib/mysql2/statement.rb tmp/x86_64-darwin14.3.0/stage/lib/mysql2/statement.rb\r\ncp lib/mysql2/version.rb tmp/x86_64-darwin14.3.0/stage/lib/mysql2/version.rb\r\nmkdir -p tmp/x86_64-darwin14.3.0/stage/spec\r\ncp spec/configuration.yml.example tmp/x86_64-darwin14.3.0/stage/spec/configuration.yml.example\r\nmkdir -p tmp/x86_64-darwin14.3.0/stage/spec/em\r\ncp spec/em/em_spec.rb tmp/x86_64-darwin14.3.0/stage/spec/em/em_spec.rb\r\ncp spec/my.cnf.example tmp/x86_64-darwin14.3.0/stage/spec/my.cnf.example\r\nmkdir -p tmp/x86_64-darwin14.3.0/stage/spec/mysql2\r\ncp spec/mysql2/client_spec.rb tmp/x86_64-darwin14.3.0/stage/spec/mysql2/client_spec.rb\r\ncp spec/mysql2/error_spec.rb tmp/x86_64-darwin14.3.0/stage/spec/mysql2/error_spec.rb\r\ncp spec/mysql2/result_spec.rb tmp/x86_64-darwin14.3.0/stage/spec/mysql2/result_spec.rb\r\ncp spec/mysql2/statement_spec.rb tmp/x86_64-darwin14.3.0/stage/spec/mysql2/statement_spec.rb\r\ncp spec/rcov.opts tmp/x86_64-darwin14.3.0/stage/spec/rcov.opts\r\ncp spec/spec_helper.rb tmp/x86_64-darwin14.3.0/stage/spec/spec_helper.rb\r\ncp spec/test_data tmp/x86_64-darwin14.3.0/stage/spec/test_data\r\nmkdir -p tmp/x86_64-darwin14.3.0/stage/support\r\ncp support/libmysql.def tmp/x86_64-darwin14.3.0/stage/support/libmysql.def\r\ncp support/mysql_enc_to_ruby.rb tmp/x86_64-darwin14.3.0/stage/support/mysql_enc_to_ruby.rb\r\ncp support/ruby_enc_to_mysql.rb tmp/x86_64-darwin14.3.0/stage/support/ruby_enc_to_mysql.rb\r\ninstall -c tmp/x86_64-darwin14.3.0/mysql2/1.9.3/mysql2.bundle lib/mysql2/mysql2.bundle\r\ncp tmp/x86_64-darwin14.3.0/mysql2/1.9.3/mysql2.bundle tmp/x86_64-darwin14.3.0/stage/lib/mysql2/mysql2.bundle\r\n/Users/tamird/.rubies/ruby-1.9.3-p547/bin/ruby -I/Users/tamird/.gem/ruby/1.9.3/gems/rspec-core-3.2.3/lib:/Users/tamird/.gem/ruby/1.9.3/gems/rspec-support-3.2.2/lib /Users/tamird/.gem/ruby/1.9.3/gems/rspec-core-3.2.3/exe/rspec --pattern spec/\\*\\*\\{,/\\*/\\*\\*\\}/\\*_spec.rb\r\n\r\nRandomized with seed 6578\r\n\r\nMysql2::Statement\r\n  should tell us the result count\r\n  should raise an exception without a block\r\n  should keep its result after other query\r\n  should create a statement\r\n  should let us iterate over results\r\n  should tell us about the fields\r\n  should let us execute our statement\r\n  should tell us the field count\r\n  should tell us the param count\r\n  should select dates\r\n  should raise an exception when server disconnects\r\n  row data type mapping\r\n    should return TrueClass or FalseClass for a TINYINT value if :cast_booleans is enabled\r\n    should return Fixnum for a MEDIUMINT value\r\n    should return TrueClass or FalseClass for a BIT(1) value if :cast_booleans is enabled\r\n    should return String for a SET value\r\n    should return a String for LONGBLOB\r\n    should return a String for TEXT\r\n    should return Fixnum for a YEAR value\r\n    should return Time when timestamp is < 1901-12-13 20:45:52\r\n    should return Fixnum for a SMALLINT value\r\n    should return Fixnum for an INT value\r\n    should return a String for TINYBLOB\r\n    should return Fixnum for a BIGINT value\r\n    should return Float for a DOUBLE value\r\n    should return a String for VARCHAR\r\n    should return Date for a DATE value\r\n    should return a String for CHAR\r\n    should return String for an ENUM value\r\n    should return BigDecimal for a DECIMAL value\r\n    should return Time when timestamp is > 2038-01-19T03:14:07\r\n    should return Float for a FLOAT value\r\n    should return Fixnum for a TINYINT value\r\n    should return nil for a NULL value\r\n    should raise an error given an invalid DATETIME\r\n    should return String for a BIT(1) value\r\n    should return Time for a TIME value\r\n    should return a String for VARBINARY\r\n    should return Time for a TIMESTAMP value when within the supported range\r\n    should return String for a BINARY value\r\n    should return String for a BIT(64) value\r\n    should return Time for a DATETIME value when within the supported range\r\n    should return a String for TINYTEXT\r\n    should return a String for MEDIUMBLOB\r\n    should return a String for LONGTEXT\r\n    should return a String for MEDIUMTEXT\r\n    should return a String for BLOB\r\n    string encoding for LONGTEXT values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for TINYTEXT values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for TINYBLOB values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n    string encoding for TEXT values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for SET values\r\n      should use Encoding.default_internal\r\n      should default to the connection's encoding if Encoding.default_internal is nil\r\n    string encoding for BLOB values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n    string encoding for MEDIUMTEXT values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for VARBINARY values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n    string encoding for LONGBLOB values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n    string encoding for CHAR values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for VARCHAR values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for MEDIUMBLOB values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n    string encoding for ENUM values\r\n      should use Encoding.default_internal\r\n      should default to the connection's encoding if Encoding.default_internal is nil\r\n    string encoding for BINARY values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n  #fields\r\n    should return an array of field names in proper order\r\n    method should exist\r\n  streaming result\r\n    should be able to stream query result\r\n  utf8_db\r\n    should be able to retrieve utf8 param query correctly\r\n    should be able to retrieve utf8 field names correctly\r\n    should be able to retrieve query with param in different encoding correctly\r\n  #each\r\n    should yield the same value for #first if streaming is disabled\r\n    should yield rows as hash's\r\n    should yield rows as hash's with symbol keys if :symbolize_keys was set to true\r\n    should throw an exception if we try to iterate twice when streaming is enabled\r\n    should be able to return results as an array\r\n    should cache previously yielded results by default\r\n    should yield different value for #first if streaming\r\n\r\nMysql2::Result\r\n  should be able to return the number of rows in the result set\r\n  should raise a TypeError exception when it doesn't wrap a result set\r\n  should respond to #count, which is aliased as #size\r\n  should respond to #each\r\n  should have included Enumerable\r\n  should raise a Mysql2::Error exception upon a bad query\r\n  row data type mapping\r\n    should return Fixnum for a TINYINT value\r\n    should return Fixnum for a SMALLINT value\r\n    should return TrueClass or FalseClass for a TINYINT value if :cast_booleans is enabled\r\n    should raise an error given an invalid DATETIME\r\n    should return a String for MEDIUMTEXT\r\n    should return a String for BLOB\r\n    should return Fixnum for a BIGINT value\r\n    should return Time for a DATETIME value when within the supported range\r\n    should return TrueClass or FalseClass for a BIT(1) value if :cast_booleans is enabled\r\n    should return Fixnum for a MEDIUMINT value\r\n    should return a String for VARBINARY\r\n    should return Fixnum for an INT value\r\n    should return Float for a FLOAT value\r\n    should return a String for CHAR\r\n    should return Time for a TIME value\r\n    should return String for a BINARY value\r\n    should return Date for a DATE value\r\n    should return Fixnum for a YEAR value\r\n    should return Time when timestamp is < 1901-12-13 20:45:52\r\n    should return BigDecimal for a DECIMAL value\r\n    should return String for a BIT(1) value\r\n    should return nil values for NULL and strings for everything else when :cast is false\r\n    should return String for an ENUM value\r\n    should return String for a BIT(64) value\r\n    should return a String for LONGTEXT\r\n    should return a String for LONGBLOB\r\n    should return Time when timestamp is > 2038-01-19T03:14:07\r\n    should return a String for TINYBLOB\r\n    should return a String for TEXT\r\n    should return Float for a DOUBLE value\r\n    should return a String for VARCHAR\r\n    should return a String for TINYTEXT\r\n    should return a String for MEDIUMBLOB\r\n    should return nil for a NULL value\r\n    should return Time for a TIMESTAMP value when within the supported range\r\n    should return String for a SET value\r\n    string encoding for LONGTEXT values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for TINYTEXT values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for TINYBLOB values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n    string encoding for TEXT values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for SET values\r\n      should use Encoding.default_internal\r\n      should default to the connection's encoding if Encoding.default_internal is nil\r\n    string encoding for BLOB values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n    string encoding for MEDIUMTEXT values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for VARBINARY values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n    string encoding for LONGBLOB values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n    string encoding for CHAR values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for VARCHAR values\r\n      should use Encoding.default_internal\r\n      should default to utf-8 if Encoding.default_internal is nil\r\n    string encoding for MEDIUMBLOB values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n    string encoding for ENUM values\r\n      should use Encoding.default_internal\r\n      should default to the connection's encoding if Encoding.default_internal is nil\r\n    string encoding for BINARY values\r\n      should not use Encoding.default_internal\r\n      should default to binary if Encoding.default_internal is nil\r\n  streaming\r\n    should raise an exception if streaming ended due to a timeout\r\n    #count should be zero for rows after streaming when there were no results\r\n    should retain the count when mixing first and each\r\n    should maintain a count while streaming\r\n    should not yield nil at the end of streaming\r\n  #each\r\n    should yield different value for #first if streaming\r\n    should throw an exception if we try to iterate twice when streaming is enabled\r\n    should yield the same value for #first if streaming is disabled\r\n    should be able to return results as an array\r\n    should yield rows as hash's with symbol keys if :symbolize_keys was set to true\r\n    should cache previously yielded results by default\r\n    should not cache previously yielded results if cache_rows is disabled\r\n    should yield rows as hash's\r\n  metadata queries\r\n    should show tables\r\n  #fields\r\n    should return an array of field names in proper order\r\n    method should exist\r\n\r\nMysql2::Client\r\n  should default flags to (REMEMBER_OPTIONS, LONG_PASSWORD, LONG_FLAG, TRANSACTIONS, PROTOCOL_41, SECURE_CONNECTION)\r\n  should have a global default_query_options hash\r\n  should execute init command\r\n  should respond to #escape\r\n  should respond to #encoding\r\n  #thread_id should be a Fixnum\r\n  should not close connections when running in a child process\r\n  should respond to #warning_count\r\n  should send init_command after reconnect\r\n  should be able to connect via SSL options (PENDING: DON'T WORRY, THIS TEST PASSES - but SSL is not enabled in your MySQL daemon.)\r\n  #server_info should require an open connection\r\n  should not leave dangling connections after garbage collection\r\n  should be able to close properly\r\n  should respond to #server_info\r\n  should expect write_timeout to be a positive integer\r\n  #info should return a hash containing the client version ID and String\r\n  should respond to #socket\r\n  should be able to connect to database with numeric-only name\r\n  should respond to #query_info\r\n  should respond to #close\r\n  should accept connect flags and pass them to #connect\r\n  should raise an exception upon connection failure\r\n  should respond to escape\r\n  should not raise an exception on create for a valid encoding\r\n  should expect read_timeout to be a positive integer\r\n  #server_info should return a hash containing the client version ID and String\r\n  should expect connect_timeout to be a positive integer\r\n  should raise a Mysql2::Error exception upon connection failure\r\n  should respond to #ping\r\n  should respond to #info\r\n  should raise an exception on create for invalid encodings\r\n  should respond to #query\r\n  #thread_id should return a boolean\r\n  should respond to #thread_id\r\n  #escape\r\n    should require an open connection\r\n    should not overflow the process stack\r\n    should return the passed string if nothing was escaped\r\n    should return a new SQL-escape version of the passed string\r\n    should not overflow the thread stack\r\n  escape\r\n    should carry over the original string's encoding\r\n    should not overflow the process stack\r\n    should return the passed string if nothing was escaped\r\n    should return a new SQL-escape version of the passed string\r\n    should not overflow the thread stack\r\n  strings returned by .info\r\n    should be tagged as ascii\r\n  using defaults file\r\n    should not raise an exception without default group\r\n    should not raise an exception for valid defaults group\r\n  strings returned by #info\r\n    should be tagged as ascii\r\n  write operations api\r\n    #last_id should handle BIGINT auto-increment ids above 32 bits\r\n    #last_id should return a Fixnum, the from the last INSERT/UPDATE\r\n    #last_id should return a Fixnum, the from the last INSERT/UPDATE\r\n    should respond to #last_id\r\n    should respond to #last_id\r\n  #query\r\n    #socket should return a Fixnum (file descriptor from C)\r\n    should return results as a hash by default\r\n    should require an open connection\r\n    should be able to return results as an array\r\n    should be able to return results with symbolized keys\r\n    #socket should require an open connection\r\n    should describe the thread holding the active query\r\n    should be impervious to connection-corrupting timeouts (PENDING: `Thread.handle_interrupt` is not defined)\r\n    should not retain query options set on a query for subsequent queries, but should retain it in the result\r\n    should only accept strings as the query parameter\r\n    should timeout if we wait longer than :read_timeout\r\n    should not let you query again if iterating is not finished when streaming\r\n    should run signal handlers while waiting for a response\r\n    should not allow another query to be sent without fetching a result first\r\n    should let you query again if iterating is finished when streaming\r\n    threaded queries should be supported\r\n    should allow changing query options for subsequent queries\r\n    evented async queries should be supported\r\n    Multiple results sets\r\n      #more_results? should work\r\n      should raise an exception when one of multiple statements fails\r\n      returns multiple result sets\r\n      #more_results? should work with stored procedures\r\n      does not interfere with other statements\r\n      will raise on query if there are outstanding results to read\r\n      #abandon_results! should work\r\n    when a non-standard exception class is raised\r\n      should handle Timeouts without leaving the connection hanging if reconnect is true (FAILED - 1)\r\n      should close the connection when an exception is raised\r\n      should handle Timeouts without leaving the connection hanging if reconnect is set to true after construction true (FAILED - 2)\r\n  select_db\r\n    should switch databases\r\n    should return the database switched to\r\n    should raise a Mysql2::Error when the database doesn't exist\r\n    should respond to #select_db\r\n  #query_info\r\n    when has some info\r\n      should retrieve it\r\n    when no info present\r\n      should 0\r\n  :local_infile\r\n    should raise an error when a non-existent file is loaded\r\n    should raise an error when local_infile is disabled\r\n    should LOAD DATA LOCAL INFILE\r\n  strings returned by #server_info\r\n    should use Encoding.default_internal\r\n    should default to the connection's encoding if Encoding.default_internal is nil\r\n  #warning_count\r\n    when has a warnings\r\n      should > 0\r\n    when no warnings\r\n      should 0\r\n\r\nMysql2::EM::Client\r\n  should support queries in callbacks\r\n  should not raise error when closing client with no query running\r\n  should not swallow exceptions raised in callbacks\r\n  should support async queries\r\n  when an exception is raised by the client\r\n    should fail the deferrable\r\n    should swallow exceptions raised in by the client\r\n\r\nMysql2::Error\r\n  responds to error_number and sql_state, with aliases\r\n  encoding\r\n    returns sql state as ASCII\r\n    returns error messages as UTF-8 by default\r\n    returns error messages and sql state in Encoding.default_internal if set\r\n\r\nPending: (Failures listed here are expected and do not affect your suite's status)\r\n\r\n  1) Mysql2::Client should be able to connect via SSL options\r\n     # DON'T WORRY, THIS TEST PASSES - but SSL is not enabled in your MySQL daemon.\r\n     Failure/Error: expect(results[0]['Value']).not_to be_empty\r\n       expected `\"\".empty?` to return false, got true\r\n     # ./spec/mysql2/client_spec.rb:141:in `block (2 levels) in <top (required)>'\r\n\r\n  2) Mysql2::Client#query should be impervious to connection-corrupting timeouts\r\n     # `Thread.handle_interrupt` is not defined\r\n     Failure/Error: expect { @client.query('SELECT 1') }.to_not raise_error\r\n       expected no Exception, got #<Mysql2::Error: closed MySQL connection> with backtrace:\r\n         # ./lib/mysql2/client.rb:85:in `_query'\r\n         # ./lib/mysql2/client.rb:85:in `query'\r\n         # ./spec/mysql2/client_spec.rb:471:in `block (4 levels) in <top (required)>'\r\n         # ./spec/mysql2/client_spec.rb:471:in `block (3 levels) in <top (required)>'\r\n     # ./spec/mysql2/client_spec.rb:471:in `block (3 levels) in <top (required)>'\r\n\r\nFailures:\r\n\r\n  1) Mysql2::Client#query when a non-standard exception class is raised should handle Timeouts without leaving the connection hanging if reconnect is true\r\n     Failure/Error: expect { client.query('SELECT 1') }.to_not raise_error\r\n       expected no Exception, got #<Mysql2::Error: Lost connection to MySQL server during query> with backtrace:\r\n         # ./lib/mysql2/client.rb:85:in `_query'\r\n         # ./lib/mysql2/client.rb:85:in `query'\r\n         # ./spec/mysql2/client_spec.rb:484:in `block (5 levels) in <top (required)>'\r\n         # ./spec/mysql2/client_spec.rb:484:in `block (4 levels) in <top (required)>'\r\n     # ./spec/mysql2/client_spec.rb:484:in `block (4 levels) in <top (required)>'\r\n\r\n  2) Mysql2::Client#query when a non-standard exception class is raised should handle Timeouts without leaving the connection hanging if reconnect is set to true after construction true\r\n     Failure/Error: expect { Timeout.timeout(0.1, ArgumentError) { client.query('SELECT SLEEP(1)') } }.to raise_error(ArgumentError)\r\n       expected ArgumentError, got #<Mysql2::Error: Lost connection to MySQL server during query> with backtrace:\r\n         # ./lib/mysql2/client.rb:85:in `_query'\r\n         # ./lib/mysql2/client.rb:85:in `query'\r\n         # ./spec/mysql2/client_spec.rb:495:in `block (6 levels) in <top (required)>'\r\n         # ./spec/mysql2/client_spec.rb:495:in `block (5 levels) in <top (required)>'\r\n         # ./spec/mysql2/client_spec.rb:495:in `block (4 levels) in <top (required)>'\r\n     # ./spec/mysql2/client_spec.rb:495:in `block (4 levels) in <top (required)>'\r\n\r\nFinished in 6.77 seconds (files took 0.1676 seconds to load)\r\n277 examples, 2 failures, 2 pending\r\n\r\nFailed examples:\r\n\r\nrspec ./spec/mysql2/client_spec.rb:480 # Mysql2::Client#query when a non-standard exception class is raised should handle Timeouts without leaving the connection hanging if reconnect is true\r\nrspec ./spec/mysql2/client_spec.rb:487 # Mysql2::Client#query when a non-standard exception class is raised should handle Timeouts without leaving the connection hanging if reconnect is set to true after construction true\r\n\r\nRandomized with seed 6578\r\n\r\n/Users/tamird/.rubies/ruby-1.9.3-p547/bin/ruby -I/Users/tamird/.gem/ruby/1.9.3/gems/rspec-core-3.2.3/lib:/Users/tamird/.gem/ruby/1.9.3/gems/rspec-support-3.2.2/lib /Users/tamird/.gem/ruby/1.9.3/gems/rspec-core-3.2.3/exe/rspec --pattern spec/\\*\\*\\{,/\\*/\\*\\*\\}/\\*_spec.rb failed\r\n```"}}