-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
warning: BigDecimal.new is deprecated
reported with ruby 2.5.0rc1
#925
Comments
Is there some suggested new code or class to use? |
Here is the suggested message at bigdecimal. For Active Record code written in ruby here are changes made to suppress this warning. |
I'm researching how to call |
According to https://www.ruby-forum.com/topic/49900 I should be able to do this, but it's crashing. Will pick this up again next week.
|
Gah, this code works after all! I was crashing elsewhere because of an |
As the latter is deprecated since: brianmario/mysql2#925
this issue is still present in |
Any news on this? |
Ruby 2.5.0 rc1 has been released https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-5-0-rc1-released/
BigDecimal.new
has been deprecated in BigDecimal 1.3.3 which is bundled with Ruby 2.5.0.rc1.Refer ruby/bigdecimal@5337373
Due to this change, mysql2 will show
warning: BigDecimal.new is deprecated
warnings.It was reported at Rails first the triaged rails/rails#31461
$ rake spec cd tmp/x86_64-linux/mysql2/2.5.0 /usr/bin/gmake compiling ../../../../ext/mysql2/result.c linking shared-object mysql2/mysql2.so cd - cp ext/mysql2/result.c tmp/x86_64-linux/stage/ext/mysql2/result.c cp spec/mysql2/statement_spec.rb tmp/x86_64-linux/stage/spec/mysql2/statement_spec.rb install -c tmp/x86_64-linux/mysql2/2.5.0/mysql2.so lib/mysql2/mysql2.so cp tmp/x86_64-linux/mysql2/2.5.0/mysql2.so tmp/x86_64-linux/stage/lib/mysql2/mysql2.so /home/yahonda/.rbenv/versions/2.5.0-rc1/bin/ruby -I/home/yahonda/.rbenv/versions/2.5.0-rc1/lib/ruby/gems/2.5.0/gems/rspec-support-3.6.0/lib:/home/yahonda/.rbenv/versions/2.5.0-rc1/lib/ruby/gems/2.5.0/gems/rspec-core-3.6.0/lib /home/yahonda/.rbenv/versions/2.5.0-rc1/lib/ruby/gems/2.5.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb
Randomized with seed 52056
Mysql2::Error
responds to error_number and sql_state, with aliases
encoding
returns error messages and sql state in Encoding.default_internal if set
returns error messages as UTF-8 by default
returns sql state as ASCII
Mysql2::EM::Client
should not raise error when closing client with no query running
should support async queries
should not swallow exceptions raised in callbacks
should support queries in callbacks
when an exception is raised by the client
should swallow exceptions raised in by the client
should fail the deferrable
Mysql2::Result
should respond to #each
should raise a TypeError exception when it doesn't wrap a result set
should respond to #free
should raise a Mysql2::Error exception upon a bad query
should have included Enumerable
should respond to #count, which is aliased as #size
should be able to return the number of rows in the result set
server flags
should set a definitive value for query_was_slow
should set a definitive value for no_index_used
should set a definitive value for no_good_index_used
metadata queries
should show tables
streaming
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:141: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:141: warning: BigDecimal.new is deprecated
should not yield nil at the end of streaming
should raise an exception if streaming ended due to a timeout
should retain the count when mixing first and each
#count should be zero for rows after streaming when there were no results
should maintain a count while streaming
row data type mapping
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Fixnum for a TINYINT value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return String for a BIT(64) value
should return Time when timestamp is > 2038-01-19T03:14:07
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Float for a FLOAT value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for TINYBLOB
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for MEDIUMBLOB
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Fixnum for an INT value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return String for an ENUM value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Float for a DOUBLE value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for TINYTEXT
should raise an error given an invalid DATETIME
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Fixnum for a YEAR value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for LONGTEXT
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return BigDecimal for a DECIMAL value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Date for a DATE value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Fixnum for a SMALLINT value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return String for a SET value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for CHAR
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Fixnum for a MEDIUMINT value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return nil for a NULL value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for VARCHAR
should return nil values for NULL and strings for everything else when :cast is false
should return Time when timestamp is < 1901-12-13 20:45:52
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return String for a BINARY value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Time for a TIMESTAMP value when within the supported range
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Time for a DATETIME value when within the supported range
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for TEXT
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for MEDIUMTEXT
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for LONGBLOB
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for BLOB
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Time for a TIME value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return Fixnum for a BIGINT value
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return a String for VARBINARY
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:174: warning: BigDecimal.new is deprecated
should return String for a BIT(1) value
string encoding for LONGBLOB values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:435: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:435: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:440: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:440: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:428: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:428: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
string encoding for BLOB values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:428: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:428: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:435: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:435: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:440: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:440: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
string encoding for SET values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:358: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:358: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:362: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:362: warning: BigDecimal.new is deprecated
should default to the connection's encoding if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:369: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:369: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:374: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:374: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
string encoding for MEDIUMBLOB values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:428: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:428: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:435: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:435: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:440: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:440: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
cast booleans for TINYINT if :cast_booleans is enabled
should return TrueClass or FalseClass for a TINYINT value if :cast_booleans is enabled
string encoding for CHAR values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
string encoding for LONGTEXT values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
string encoding for TINYBLOB values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:435: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:435: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:440: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:440: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:428: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:428: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
cast booleans for BIT(1) if :cast_booleans is enabled
should return TrueClass or FalseClass for a BIT(1) value if :cast_booleans is enabled
string encoding for TEXT values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
string encoding for MEDIUMTEXT values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
string encoding for ENUM values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:328: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:328: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:332: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:332: warning: BigDecimal.new is deprecated
should default to the connection's encoding if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:339: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:339: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:344: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:344: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
string encoding for BINARY values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:395: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:395: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:400: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:400: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:388: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:388: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
string encoding for VARBINARY values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:435: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:435: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:440: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:440: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:428: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:428: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
string encoding for VARCHAR values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
string encoding for TINYTEXT values
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:447: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:451: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:458: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/result_spec.rb:463: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
#fields
should return an array of field names in proper order
method should exist
#each
should yield rows as hash's
should be able to iterate a second time even if cache_rows is disabled
should be able to return results as an array
should cache previously yielded results by default
should not cache previously yielded results if cache_rows is disabled
should yield rows as hash's with symbol keys if :symbolize_keys was set to true
should throw an exception if we try to iterate twice when streaming is enabled
should yield different value for #first if streaming
should yield the same value for #first if streaming is disabled
Mysql2::Client
should not leave dangling connections after garbage collection
#info should return a hash containing the client version ID and String
should expect connect_timeout to be a positive integer
#thread_id should be a Fixnum
should respond to #close
should respond to #info
should raise a Mysql2::Error::ConnectionError exception upon connection failure due to invalid credentials
should parse flags string
should allow nil read_timeout
should respond to #query
should raise an exception on create for invalid encodings
should be able to close properly
should respond to #server_info
should expect read_timeout to be a positive integer
should respond to #query_info
#server_info should require an open connection
should accept connect flags and pass them to #connect
should not raise an exception on create for a valid encoding
should not try to query closed mysql connection
should be able to connect to database with numeric-only name
should respond to escape
#thread_id should return a boolean
should raise a Mysql::Error::ConnectionError upon connection failure
should parse flags array
should execute init command
should respond to #socket
should respond to #thread_id
should be able to connect using plaintext password
should have a global default_query_options hash
should terminate connections when calling close
should expect write_timeout to be a positive integer
should respond to #escape
should default flags to (REMEMBER_OPTIONS, LONG_PASSWORD, LONG_FLAG, TRANSACTIONS, PROTOCOL_41, SECURE_CONNECTION)
should raise an exception on non-string encodings
should set default program_name in connect_attrs
should respond to #warning_count
should be able to connect via SSL options (FAILED - 1)
should set custom connect_attrs
should respond to #encoding
should respond to #ping
should send init_command after reconnect
#server_info should return a hash containing the client version ID and String
#closed?
should return true after close
should return false when connected
strings returned by .info
should be tagged as ascii
#escape
should require an open connection
should not overflow the process stack
should return the passed string if nothing was escaped
should return a new SQL-escape version of the passed string
should not overflow the thread stack
when mysql encoding is not utf8
should return a internal encoding string if Encoding.default_internal is set
strings returned by #info
should be tagged as ascii
write operations api
should respond to #last_id
should respond to #last_id
#last_id should handle BIGINT auto-increment ids above 32 bits
#last_id should return a Fixnum, the from the last INSERT/UPDATE
#last_id should return a Fixnum, the from the last INSERT/UPDATE
using defaults file
should not raise an exception without default group
should not raise an exception for valid defaults group
#query_info
when has some info
should retrieve it
when no info present
should 0
strings returned by #server_info
should default to the connection's encoding if Encoding.default_internal is nil
should use Encoding.default_internal
:local_infile
should raise an error when local_infile is disabled (PENDING: DON'T WORRY, THIS TEST PASSES - but LOCAL INFILE is not enabled in your MySQL daemon.)
should raise an error when a non-existent file is loaded (PENDING: DON'T WORRY, THIS TEST PASSES - but LOCAL INFILE is not enabled in your MySQL daemon.)
should LOAD DATA LOCAL INFILE (PENDING: DON'T WORRY, THIS TEST PASSES - but LOCAL INFILE is not enabled in your MySQL daemon.)
#warning_count
when no warnings
should 0
when has a warnings
should > 0
#automatic_close
should not close connections when running in a child process
is enabled by default
can be assigned
can be configured
escape
should not overflow the process stack
should carry over the original string's encoding
should not overflow the thread stack
should return a new SQL-escape version of the passed string
should return the passed string if nothing was escaped
#query
#socket should require an open connection
should let you query again if iterating is finished when streaming
should not retain query options set on a query for subsequent queries, but should retain it in the result
should run signal handlers while waiting for a response
evented async queries should be supported
should be able to return results as an array
should return results as a hash by default
should be impervious to connection-corrupting timeouts in #execute
should detect closed connection on query read error
should not allow another query to be sent without fetching a result first
should allow changing query options for subsequent queries
should timeout if we wait longer than :read_timeout
threaded queries should be supported
should be able to return results with symbolized keys
should only accept strings as the query parameter
should describe the thread holding the active query
should not let you query again if iterating is not finished when streaming
#socket should return a Fixnum (file descriptor from C)
should require an open connection
when a non-standard exception class is raised
should close the connection when an exception is raised
should handle Timeouts without leaving the connection hanging if reconnect is true
should handle Timeouts without leaving the connection hanging if reconnect is set to true after construction
Multiple results sets
#abandon_results! should work
returns multiple result sets
#more_results? should work with stored procedures
should raise an exception when one of multiple statements fails
#more_results? should work
will raise on query if there are outstanding results to read
does not interfere with other statements
select_db
should respond to #select_db
should switch databases
should return the database switched to
should raise a Mysql2::Error when the database doesn't exist
Mysql2::Statement
should tell us about the fields
should accept keyword arguments on statement execute
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should handle bignum but beyond int64_t
should let us iterate over results
should tell us the result count
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:186: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should handle as a decimal binding a BigDecimal
should warn but still work if cache_rows is set to false
should prepare Date values
should create a statement
should accept bind arguments and keyword arguments on statement execute
should handle bignum but in int64_t
should select dates
should tell us the param count
should keep its result after other query
should handle booleans
should raise an exception when server disconnects
should let us execute our statement
should be reusable 10000 times
should be reusable 1000 times
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:196: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:198: warning: BigDecimal.new is deprecated
should update a DECIMAL value passing a BigDecimal
should raise an exception without a block
should prepare Time values with microseconds
should handle comparisons and likes
should tell us the field count
should prepare DateTime values with microseconds
#fields
method should exist
should return an array of field names in proper order
should return nil for statement with no result fields
last_id
should handle bigint ids
should return last insert id
affected_rows
should return number of rows affected by an insert
should return number of rows affected by a delete
should return number of rows affected by an update
streaming result
should be able to stream query result
utf8_db
should be able to retrieve query with param in different encoding correctly
should be able to retrieve utf8 field names correctly
should be able to retrieve utf8 param query correctly
row data type mapping
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Date for a DATE value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Fixnum for an INT value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for CHAR
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for BLOB
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for LONGBLOB
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return nil for a NULL value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for MEDIUMBLOB
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Fixnum for a YEAR value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Fixnum for a MEDIUMINT value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return String for a BIT(64) value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for VARCHAR
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for MEDIUMTEXT
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Float for a DOUBLE value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Time for a TIME value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Time for a DATETIME value when within the supported range
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return String for a SET value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Fixnum for a BIGINT value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Fixnum for a TINYINT value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return String for an ENUM value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return String for a BINARY value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Float for a FLOAT value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Fixnum for a SMALLINT value
should raise an error given an invalid DATETIME
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return String for a BIT(1) value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return Time for a TIMESTAMP value when within the supported range
should return Time when timestamp is > 2038-01-19T03:14:07
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for TEXT
should return Time when timestamp is < 1901-12-13 20:45:52
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return BigDecimal for a DECIMAL value
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for VARBINARY
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for LONGTEXT
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for TINYTEXT
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/lib/mysql2/statement.rb:7: warning: BigDecimal.new is deprecated
should return a String for TINYBLOB
string encoding for VARBINARY values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:581: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:581: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:588: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:588: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:593: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:593: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
string encoding for BLOB values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:588: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:588: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:593: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:593: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:581: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:581: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
string encoding for MEDIUMTEXT values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
string encoding for TINYBLOB values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:588: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:588: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:593: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:593: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:581: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:581: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
string encoding for TEXT values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
string encoding for SET values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:511: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:511: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:515: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:515: warning: BigDecimal.new is deprecated
should default to the connection's encoding if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:522: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:522: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:527: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:527: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
string encoding for ENUM values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:492: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:492: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:497: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:497: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:481: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:481: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:485: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:485: warning: BigDecimal.new is deprecated
should default to the connection's encoding if Encoding.default_internal is nil
cast booleans for TINYINT if :cast_booleans is enabled
should return TrueClass or FalseClass for a TINYINT value if :cast_booleans is enabled
string encoding for LONGTEXT values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
string encoding for BINARY values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:541: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:541: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:548: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:548: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:553: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:553: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
cast booleans for BIT(1) if :cast_booleans is enabled
should return TrueClass or FalseClass for a BIT(1) value if :cast_booleans is enabled
string encoding for MEDIUMBLOB values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:581: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:581: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:588: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:588: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:593: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:593: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
string encoding for TINYTEXT values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
string encoding for VARCHAR values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
string encoding for LONGBLOB values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:588: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:588: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:593: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:593: warning: BigDecimal.new is deprecated
should not use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:581: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:581: warning: BigDecimal.new is deprecated
should default to binary if Encoding.default_internal is nil
string encoding for CHAR values
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:611: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:616: warning: BigDecimal.new is deprecated
should use Encoding.default_internal
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:600: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:604: warning: BigDecimal.new is deprecated
should default to utf-8 if Encoding.default_internal is nil
close
should free server resources
should raise an error on subsequent execution
#each
should cache previously yielded results by default
should yield rows as hash's with symbol keys if :symbolize_keys was set to true
should yield rows as hash's
should throw an exception if we try to iterate twice when streaming is enabled
should be able to return results as an array
should yield the same value for #first if streaming is disabled
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:300: warning: :cache_rows is ignored if :stream is true
/home/yahonda/git/mysql2/spec/mysql2/statement_spec.rb:300: warning: :cache_rows is ignored if :stream is true
should yield different value for #first if streaming
Pending: (Failures listed here are expected and do not affect your suite's status)
Mysql2::Client :local_infile should raise an error when local_infile is disabled
DON'T WORRY, THIS TEST PASSES - but LOCAL INFILE is not enabled in your MySQL daemon.
./spec/mysql2/client_spec.rb:390
Mysql2::Client :local_infile should raise an error when a non-existent file is loaded
DON'T WORRY, THIS TEST PASSES - but LOCAL INFILE is not enabled in your MySQL daemon.
./spec/mysql2/client_spec.rb:397
Mysql2::Client :local_infile should LOAD DATA LOCAL INFILE
DON'T WORRY, THIS TEST PASSES - but LOCAL INFILE is not enabled in your MySQL daemon.
./spec/mysql2/client_spec.rb:404
Failures:
Mysql2::Client should be able to connect via SSL options
Failure/Error:
expect do
ssl_client = new_client(
'host' => 'mysql2gem.example.com', # must match the certificates
:sslkey => '/etc/mysql/client-key.pem',
:sslcert => '/etc/mysql/client-cert.pem',
:sslca => '/etc/mysql/ca-cert.pem',
:sslcipher => 'DHE-RSA-AES256-SHA',
:sslverify => true,
)
end.not_to raise_error
expected no Exception, got #<Mysql2::Error::ConnectionError: Unknown MySQL server host 'mysql2gem.example.com' (2)> with backtrace:
# ./lib/mysql2/client.rb:97:in
connect' # ./lib/mysql2/client.rb:97:in
initialize'# ./spec/spec_helper.rb:25:in
new' # ./spec/spec_helper.rb:25:in
new_client'# ./spec/mysql2/client_spec.rb:138:in
block (3 levels) in <top (required)>' # ./spec/mysql2/client_spec.rb:137:in
block (2 levels) in <top (required)>'./spec/mysql2/client_spec.rb:137:in `block (2 levels) in <top (required)>'
Finished in 10.24 seconds (files took 0.23195 seconds to load)
320 examples, 1 failure, 3 pending
Failed examples:
rspec ./spec/mysql2/client_spec.rb:128 # Mysql2::Client should be able to connect via SSL options
Randomized with seed 52056
/home/yahonda/.rbenv/versions/2.5.0-rc1/bin/ruby -I/home/yahonda/.rbenv/versions/2.5.0-rc1/lib/ruby/gems/2.5.0/gems/rspec-support-3.6.0/lib:/home/yahonda/.rbenv/versions/2.5.0-rc1/lib/ruby/gems/2.5.0/gems/rspec-core-3.6.0/lib /home/yahonda/.rbenv/versions/2.5.0-rc1/lib/ruby/gems/2.5.0/gems/rspec-core-3.6.0/exe/rspec --pattern spec/**{,/*/**}/*_spec.rb failed
The text was updated successfully, but these errors were encountered: