diff --git a/CHANGELOG.md b/CHANGELOG.md index 133a8059e..6cb41e5a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ # Changelog -## In Git -* Avoid thread blocking on Ruby 1.9.x under Windows. Patch by Roger Pack. +## 0.3.3 (June 14th, 2011) +* disable async support, and access to the underlying file descriptor under Windows. It's never worked reliably and ruby-core has a lot of work to do in order to make it possible. +* added support for turning eager-casting off. This is especially useful in ORMs that will lazily cast values upon access. +* added a warning if a 0.2.x release is being used with ActiveRecord 3.1 since both the 0.2.x releases and AR 3.1 have mysql2 adapters, we want you to use the one in AR 3.1 +* added Mysql2::Client.escape (class-level method) +* disabled eager-casting in the bundled ActiveRecord adapter (for Rails 3.0 or less) ## 0.3.2 (April 26th, 2011) * Fix typo in initialization for older ActiveRecord versions @@ -15,6 +19,13 @@ * BREAKING CHANGE: the ActiveRecord adapter has been pulled into Rails 3.1 and is no longer part of the gem * added Mysql2::Client.escape (class-level) for raw one-off non-encoding-aware escaping +## 0.2.8 (June 14th, 2011) +* disable async support, and access to the underlying file descriptor under Windows. It's never worked reliably and ruby-core has a lot of work to do in order to make it possible. +* added support for turning eager-casting off. This is especially useful in ORMs that will lazily cast values upon access. +* added a warning if a 0.2.x release is being used with ActiveRecord 3.1 since both the 0.2.x releases and AR 3.1 have mysql2 adapters, we want you to use the one in AR 3.1 +* added Mysql2::Client.escape (class-level method) +* disabled eager-casting in the bundled ActiveRecord adapter (for Rails 3.0 or less) + ## 0.2.7 (March 28th, 2011) * various fixes for em_mysql2 and fiber usage * use our own Mysql2IndexDefinition class for better compatibility across ActiveRecord versions diff --git a/lib/mysql2/client.rb b/lib/mysql2/client.rb index 0cc99dee7..aac779c89 100644 --- a/lib/mysql2/client.rb +++ b/lib/mysql2/client.rb @@ -9,7 +9,8 @@ class Client :database_timezone => :local, # timezone Mysql2 will assume datetime objects are stored in :application_timezone => nil, # timezone Mysql2 will convert to before handing the object back to the caller :cache_rows => true, # tells Mysql2 to use it's internal row cache for results - :connect_flags => REMEMBER_OPTIONS | LONG_PASSWORD | LONG_FLAG | TRANSACTIONS | PROTOCOL_41 | SECURE_CONNECTION + :connect_flags => REMEMBER_OPTIONS | LONG_PASSWORD | LONG_FLAG | TRANSACTIONS | PROTOCOL_41 | SECURE_CONNECTION, + :cast => true } def initialize(opts = {}) diff --git a/lib/mysql2/version.rb b/lib/mysql2/version.rb index 559204974..6209d49f8 100644 --- a/lib/mysql2/version.rb +++ b/lib/mysql2/version.rb @@ -1,3 +1,3 @@ module Mysql2 - VERSION = "0.3.2" + VERSION = "0.3.3" end \ No newline at end of file