Releases: brianmario/mysql2
Releases · brianmario/mysql2
Release 0.5.6
0.5.5
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
What's Changed
- The taint mechanism will be deprecated in Ruby 2.7 by @kamipo in #1083
- Made argument types strict for ruby 2.7 by @nobu in #1096
- Update rake (and rake-compiler) to suppress the warning. by @junaruga in #1099
- Fix crash if a Mysql2::Client object is allocated but never connected by @sodabrew in #1101
- Remove Enumerable include from Statement class by @adamcrown in #1104
- Add project metadata to the gemspec by @orien in #1089
- Don't call mysql_close if mysql_init wasn't called. by @fimmtiu in #1111
- Client session tracking by @insom in #1092
- Avoid a hash object allocation per each
query
/execute
call by @kamipo in #1112 - Implementing type reflection from mysql result by @danhuynhdev in #1068
- Register C global variables to Ruby GC to avoid problems with GC.compact by @casperisfine in #1115
- Clarify Rails 4.2.11 support in Readme by @muzfuz in #1131
- Improve Homebrew compatibility by @stefansundin in #1135
- Tiny README syntax markup for consistency by @fwolfst in #1164
- Add GitHub Actions. by @junaruga in #1154
- Run GC.verify_compaction_references on CI by @casperisfine in #1155
- GitHub Actions: Add CentOS/Fedora cases. by @junaruga in #1168
- Random SEGV in do_send_query() by @unak in #1150
- GitHub Actions: Add macOS cases. by @junaruga in #1170
- Add GitHub Actions badges. by @junaruga in #1172
- Rename .travis_* files to ci/*. by @junaruga in #1171
- Make the benchmarks group optional. by @junaruga in #1173
- Verify the testing database before running tests. by @junaruga in #1174
- Rename the before/after hooks's symbol on RSpec 2 to the one on RSpec 3. by @junaruga in #1177
- Refactor CI yaml files by @junaruga in #1176
- Fix test failures on MariaDB by @junaruga in #1193
- Fix some typos [ci skip] by @kamipo in #1195
- Travis: Remove the command to pin Rubygems. by @junaruga in #1188
- Make Result#fields return interned strings in Ruby 3+ by @casperisfine in #1181
- Can't enable SSL with MariaDB driver library. (#1182) by @vakuum in #1183
- Fix broken URL [ci skip] by @gaurish in #1207
- Dynamically set Homebrew-installed OpenSSL flag by @olivierlacan in #1204
- Setup default CA path if not provided by @dbussink in #1206
- Allow setting VERIFY_IDENTITY for MariaDB by @dbussink in #1205
- Fix session tracking tests by @insom in #1222
- Update Mysql2::Result spec for Ruby 3.1 by @casperisfine in #1219
- Update DATETIME casting tests for mysql 8.0 by @casperisfine in #1221
- Fix syntax by @tenderlove in #1223
- Fix more builds by @tenderlove in #1224
- Fix a mismatching size warning by @casperisfine in #1227
- Move rubocop to a separate CI job by @casperisfine in #1225
- improve ConnectionError mapping by @ThomasSevestre in #1215
- Undefine T_DATA allocators for Ruby 3.2 compatibility by @casperisfine in #1236
- Add Ruby 3.1 to the CI matrix by @casperisfine in #1235
- Fix to build with MySQL 5.1 by @arika in #1197
- fix typo in README by @nealharris in #1247
- Add signing key for MySQL 5.7.37 / 8.0.28 and higher by @sodabrew in #1254
- Remove ubuntu-16.04 from workflows by @mishina2228 in #1257
- Update GitHub Actions workflows by @mishina2228 in #1253
New Contributors
- @nobu made their first contribution in #1096
- @adamcrown made their first contribution in #1104
- @orien made their first contribution in #1089
- @fimmtiu made their first contribution in #1111
- @insom made their first contribution in #1092
- @danhuynhdev made their first contribution in #1068
- @muzfuz made their first contribution in #1131
- @stefansundin made their first contribution in #1135
- @fwolfst made their first contribution in #1164
- @unak made their first contribution in #1150
- @vakuum made their first contribution in #1183
- @olivierlacan made their first contribution in #1204
- @tenderlove made their first contribution in #1223
- @ThomasSevestre made their first contribution in #1215
- @arika made their first contribution in #1197
- @nealharris made their first contribution in #1247
- @mishina2228 made their first contribution in #1257
Full Changelog: 0.5.3...0.5.4
0.5.3
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
0.5.1
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
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.- UPDATE Nov 2018: Rails 4.2.11 and higher work with mysql2 0.5.x as well rails/rails@v4.2.10...v4.2.11
- 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
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)