Skip to content

Releases: brianmario/mysql2

0.2.3

13 Jun 02:11
Compare
Choose a tag to compare
  • connection flags can now be passed to the constructor via the :flags key
  • switch AR adapter connection over to use FOUND_ROWS option
  • patch to ensure we use DateTime objects in place of Time for timestamps that are out of the supported range on 32bit platforms < 1.9.2

0.2.2

13 Jun 02:08
Compare
Choose a tag to compare
  • Change how AR adapter would send initial commands upon connecting
    • we can make multiple session variable assignments in a single query
  • fix signal handling when waiting on queries
  • retry connect if interrupted by signals

0.2.1

13 Jun 02:08
Compare
Choose a tag to compare
  • bring mysql2 ActiveRecord adapter back into gem

0.2.0

13 Jun 02:07
Compare
Choose a tag to compare
  • switch back to letting libmysql manage all allocation/thread-state/freeing for the connection
  • cache various numeric type conversions in hot-spots of the code for a little speed boost
  • ActiveRecord adapter moved into Rails 3 core
    • Don't worry 2.3.x users! We'll either release the adapter as a separate gem, or try to get it into 2.3.9
  • Fix for the "closed MySQL connection" error (GH #31)
  • Fix for the "can't modify frozen object" error in 1.9.2 (GH #37)
  • Introduce cascading query and result options (more info in README)
  • Sequel adapter pulled into core (will be in the next release - 3.15.0 at the time of writing)
  • add a safety check when attempting to send a query before a result has been fetched

0.1.9

13 Jun 02:05
Compare
Choose a tag to compare
  • Support async ActiveRecord access with fibers and EventMachine (@mperham)
  • string encoding support for 1.9, respecting Encoding.default_internal
  • added support for rake-compiler (@tenderlove)
  • bugfixes for ActiveRecord driver
    • one minor bugfix for TimeZone support
    • fix the select_rows method to return what it should according to the docs (@r-stu31)
  • Mysql2::Client#fields method added - returns the array of field names from a resultset, as strings
  • Sequel adapter
    • bugfix regarding sybolized field names (Eric Wong)
    • fix query logging in Sequel adapter
  • Lots of nice code cleanup (@tenderlove)
    • Mysql2::Error definition moved to pure-Ruby
    • Mysql2::client#initialize definition moved to pure-Ruby
    • Mysql2::Result partially moved to pure-Ruby

0.1.8

13 Jun 02:01
Compare
Choose a tag to compare
  • fixes for AR adapter for timezone juggling
  • fixes to be able to run benchmarks and specs under 1.9.2

0.1.7

13 Jun 02:01
Compare
Choose a tag to compare
  • fix a bug when using the disconnect! method on a closed connection in the AR driver

0.1.6

13 Jun 01:57
Compare
Choose a tag to compare
  • more fixes to the AR adapter related to casting
  • add missing index creation override method to AR adapter
  • added sql_state and error_number methods to the Mysql2::Error exception class

0.1.5

13 Jun 02:05
Compare
Choose a tag to compare
  • quite a few patches from Eric Wong related to thread-safety, non-blocking I/O and general cleanup
    • wrap mysql_real_connect with rb_thread_blocking_region
    • release GVL for possibly blocking mysql_* library calls
    • [cleanup] quiet down warnings
    • [cleanup] make all C symbols static
    • add Mysql2::Client#close method
    • correctly free the wrapped result in case of EOF
    • Fix memory leak from the result wrapper struct itself
    • make Mysql2::Client destructor safely non-blocking
  • bug fixes for ActiveRecord adapter
    • added casting for default values since they all come back from Mysql as strings (!?!)
    • missing constant was added
    • fixed a typo in the show_variable method
  • switched over sscanf for date/time parsing in C
  • made some specs a little finer-grained
  • initial Sequel adapter added
  • updated query benchmarks to reflect the difference between casting in C and in Ruby

0.1.4

13 Jun 01:56
Compare
Choose a tag to compare
  • optimization: implemented a local cache for rows that are lazily created in ruby during iteration. The MySQL C result is freed as soon as all the results have been cached
  • optimization: implemented a local cache for field names so every row reuses the same objects as field names/keys
  • refactor the Mysql2 connection adapter for ActiveRecord to not extend the Mysql adapter - now being a free-standing connection adapter