./databases/ruby-mysql2, Simple, fast Mysql library for Ruby, binding to libmysql

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.5.0, Package name: ruby24-mysql2-0.5.0, Maintainer: taca

Mysql2

Mysql2 is a modern, simple and very fast Mysql library for Ruby - binding to
libmysql.

The Mysql2 gem is meant to serve the extremely common use-case of connecting,
querying and iterating on results. Some database libraries out there serve as
direct 1:1 mappings of the already complex C API's available. This one is
not.

It also forces the use of UTF-8 (or binary) for the connection (and all
strings in 1.9, unless Encoding.default_internal is set then it'll convert
from UTF-8 to that encoding) and uses encoding-aware MySQL API calls where it
can.


Required to run:
[databases/mysql57-client] [lang/ruby24-base]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 5981bc9c1337009f8355486e5681f586f5095dd3
RMD160: 14aa173bde98968417943634e61456c2b7ad8525
Filesize: 96.5 KB

Version history: (Expand)


CVS history: (Expand)


   2018-03-23 14:41:37 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
databases/ruby-mysql2: update to 0.5.0

0.5.0						2018/3/21

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.

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)
   2018-02-25 15:08:18 by Takahiro Kambe | Files touched by this commit (3) | Package updated
Log message:
databases/ruby-mysql2: update to 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)

Changes

* Better specs (#904)
* Extended keyword for the explain statement has been removed (#894)
   2017-08-18 12:15:32 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-mysql2 to 0.4.9.

0.4.9						2017/08/11

Bug Fixes

* Fixed enable_cleartext_plugin mode (#874)
* Prepared statements should handle booleans properly (#871)
   2017-07-13 16:18:03 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-mysql2 to 0.4.8.

0.4.7

* Adding support for MYSQL_ENABLE_CLEARTEXT_PLUGIN flag (#845)
* Avoid invalidating re-assigned socket fd by fixing connected check (#847)
* Wait for close to be processed by server in test for Threads_connected (#850)
* Fix flaky test that used Process.wait without specifying a pid (#849)
* Add a Mysql2::Client#closed? method (#796)
* Fix use after free of client field when closing with reconnect option (#846)
* Fix leaky test that caused a re-assigned socket to be closed on GC. (#853)
* Close several unclosed clients in tests (#848)
* Fix spec that expected Client#socket on all platforms, it's not available on
  WIndows
* Docs: Fix link in readme (#854)
* English grammar: Fix incorrect use of word "deprecated" (#855)
* Minimal required changes to make it work for mariadb 10.2 (#857)
* Fix segfault for Mysql2::Statement#fields on non-SELECT queries
* Fix for name change of struct NET.vio to .pvio in MariaDB Connector/C 3.x.
* Fix for MariaDB 10.2 which does not define CLIENT_LONG_PASSWORD
* Add README section to discuss the special meaning of localhost
* Move the section for Multple Result Sets
* Update MySQL Connector/C version for Windows
* Change the quoting for unzipping MySQL Connector/C for Windows

0.4.8

* Add ifdefs for MySQL 5.1 without MYSQL_ENABLE_CLEARTEXT_PLUGIN
   2017-06-04 17:01:32 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-mysql2 to 0.4.6.

0.4.6						2017/5/4

New Features

  None.

Bugfixes

* Mysql2::Error: This connection is still waiting for a result, try again once
  you have the result (#772)
* Handle being terminated while reading query result (#811 )
* Fix segfault on SIGINT race condition (#816, #813)
* Better error messages when the connection options have errors (#831)

Changes

* Use bool instead of my_bool which has been removed since MySQL 8.0.1 (#840,
  #838)
* Reminder for Mac users to install xcode-select (#832)
* Update Travis CI and AppVeyor matrix (#820, #819, #812)
* Update Travis CI for MySQL 8.0 tests (#818, #817)
   2016-10-24 15:54:42 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-mysql2 to 0.4.5.

0.4.5

New Features

    * Add new connection argument :ssl_mode to Mysql2::Client#new
    * Prepared statements now support DateTime arguments

Bugfixes

    * Fix segfault when wrapper->result is used after it is freed
    * Raise an exception but don't crash on non-string encoding argument
    * Raise an exception but don't crash on nil argument to Mysql2::Client#new
    * Avoid RangeError on integers larger than LONG_LONG
    * Fix a BigDecimal value binding in Prepared Statements
    * Avoid type error when using connect_timeout, read_timeout and
      write_timeout in a DATABASE_URL env variable

Changes

    * Travis CI matrix now includes MySQL 8.0
    * Travis CI matrix defaults to MySQL 5.6
    * AppVeyor CI matrix switched to MySQL 5.7
    * Fix test that implicitly creates a passwordless user
    * Use RSpec expect output instead of StringIO
    * Move macro REQUIRE_CONNECTED to client.c
    * Add a note about casting boolean columns
    * Suppress rubocop's invalid UTF-8 literal warning
   2016-07-17 16:26:36 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-mysql2 to 0.4.4.

Bugfixes

  • Fix segv when num of rows is zero
  • Fix failed to allocate memory for an empty result set
  • Fix :cache_rows => false on prepared statements
  • Fix results buffer allocation fails with prepared statements

Changes

  • Allow repeated each with :cache_rows => false
  • Fix some tests for non-default creds
  • Use the Travis Trusty image for Travis CI
   2016-03-08 14:55:27 by Takahiro Kambe | Files touched by this commit (2) | Package updated
Log message:
Update ruby-mysql2 to 0.4.3.

0.4.3

New Features

* Add method Client#ssl_cipher to expose mysql_get_ssl_cipher
* Add method Result#free to immediately free a result set
* Add connection flag automatic_close: true/false to determine whether to
  work around connections being closed by garbage collection in a child
  after a fork. Default is true, which restores behavior prior to 0.3.16.

Bugfixes

* Fix to hold the GVL between mysql_stmt_execute and mysql_stmt_store_result
  to prevent commands hitting the wire out of sync (e.g. if a GC run occurs
  in the middle)
* Fix BigDecimal arguments to Prepared Statements were ignored
* Fix rake re-definition warning

Changes

* Add Ruby 2.3 to the Travis CI matrix
* Allow nil for timeouts instead of casting to 0 when creating a Client
  instance
* Add connection flag automatic_close: true/false to determine whether to
  work around connections being closed by garbage collection in a child
  after a fork. Default is true, which restores behavior prior to 0.3.16.