mysql2 v0.5.0 Release Notes

Release Date: 2018-03-21 // about 6 years ago
  • ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿ’Ž Ruby 2.0 or higher required. Ruby 1.8.7 and Ruby 1.9.3 are not supported.
    • ๐Ÿ‘ MySQL 5.5 or higher required. MySQL 5.0 and 5.1 are not supported.
    • โฌ†๏ธ For Rails 4.x please pin the gem to mysql2 '~> 0.4.0' to avoid the 0.5.x upgrade.
    • ๐Ÿš€ For Rails 5.x the next point releases will enable both mysql2 0.4.x and 0.5.x, but until the next point release you may wish to pin the mysql2 version in your Gemfile.

    ๐Ÿ†• New Features

    • Expose mysql_set_server_option to turn multiple statements on and off (#943)
    • Accept query options on Statement#execute (#912)
    • ๐Ÿ‘Œ Support connect attributes and the program_name attribute (#760)
    • ๐Ÿ‘‰ Make server_status variable available (#755)

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix wrong value of type YEAR on big endian environment (#921)
    • MySQL 8.0.3 Release Candidate removes MYSQL_SECURE_AUTH (#891)
    • โš  Suppress Fixnum and Bignum warnings on Ruby 2.4 (#907)

    ๐Ÿ”„ Changes

    • โš  Resolve warnings for my_bool vs. bool types (#916, #919)
    • Call BigDecimal(num) instead of BigDecimal.new(num) (#925, #928)
    • 0๏ธโƒฃ GitHub is HTTPS by default (#922)
    • Misc Cleanups (#918)
    • ๐Ÿ‘ป More specific exception classes (#260, #404, #870, 911)
    • โšก๏ธ Update RuboCop to 0.50.x (#752)
    • Prefix more C functions with rb_mysql_ (#910)
    • ๐Ÿ›  Fix compat with RubyInstaller-2.4 on Windows (#875)