Skip to content

Releases: brianmario/mysql2

Release 0.5.6

15 Feb 17:19
0.5.6
43ea8af
Compare
Choose a tag to compare

What's changed

0.5.5

22 Jan 21:43
Compare
Choose a tag to compare

New

  • Support for Ruby GC compaction (#1192)
  • Add --with-openssl-dir option for improved linking with OpenSSL (#1303)

Changed

  • Lock on the current Fiber rather than current Thread (#1284)
  • Improve SSL support on MySQL 5.6.36+ and MariaDB Connector/C 3.0+ (#1304, #1306)
  • Additional search paths to find MySQL libraries by Homebrew (#1278)
  • README: Improve docs for SSL/TLS (#1142, #1306)
  • CI: Upgrade RuboCop and run in its own CI step (#1259, #1268, #1295)
  • CI: Update runtime environments (#1290, #1291, #1292, #1298, #1299)

Full Changelog: 0.5.4...0.5.5

0.5.4 Release

03 May 20:01
e9c6629
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.5.3...0.5.4

0.5.3

27 Nov 08:46
Compare
Choose a tag to compare

New Features

  • Expose Windows client authentication (#1018)

Bug Fixes

  • Support more MySQL encodings and warn rather than crash on unsupported encodings (#1040)

Changes

  • Precompiled mysql2 gem for Windows supports Ruby 2.2, 2.3, 2.4, 2.5, 2.6. Windows Ruby 2.0 and 2.1 are dropped.
  • Keyword arguments have to be explicitly double-splatted in Ruby 2.7+ (#1084)
  • Add Centos to CI matrix (#989, #1085)
  • Remove spec from gem (#1044)
  • Replace Win32API with Fiddle, update appveyor.yml (#1053)
  • Update README to clarify the protocol value in DATABASE_URL (#1047)
  • Improve performance to call Mysql2::Result#each and Mysql2::Result#fields (#1046)
  • Fix fragile specs due to clock skew and timeout/threads corruption (#1041)
  • README updates (#1002, #1038)

0.5.2

06 Jul 17:16
Compare
Choose a tag to compare

New Features

None

Bug Fixes

  • Bounds-check the encoding translation array from MySQL to Ruby encodings.

Changes

  • Add more encoding translations for MySQL 8 compatibility.

0.5.1

11 Apr 03:39
Compare
Choose a tag to compare

New Features

  • None

Bug Fixes

  • Fix with --with-mysql-dir (#952)
  • Prevent command out of sync errors with Prepared Statements (#956, #957, #958)

Changes

  • Specs: Use the prepared statement performance schema if available (#960)
  • README mysql2 0.5.x works with Rails 5.0.7, 5.1.6, and higher
  • README be sure to read about the known limitations of prepared statements

0.5.0

21 Mar 00:36
Compare
Choose a tag to compare

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)
  • 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)

0.4.10

15 Dec 15:20
Compare
Choose a tag to compare

New Features

  • Make sure ssl is enabled if only :sslverify is set (#889)

Fixes

  • Cast the BIT(1) type when :cast_booleans is true for prepared statements (#883, #903)
  • Compilation failures against MariaDB Connector/C 3.0.2 (#878, #888, #895, #900, #901, #902)
  • MYSQL_SECURE_AUTH has been removed in MySQL 8.0.3 RC (#892, #898)

Changes

  • Better specs (#904)
  • Extended keyword for the explain statement has been removed (#894)

0.4.9

11 Aug 04:32
Compare
Choose a tag to compare

Bug Fixes

  • Fixed enable_cleartext_plugin mode (#874)
  • Prepared statements should handle booleans properly (#871)

0.4.8

11 Jul 01:35
Compare
Choose a tag to compare

Bug Fixes

Add ifdefs for MySQL 5.1 without MYSQL_ENABLE_CLEARTEXT_PLUGIN