Skip to content

Commit 3510336

Browse files
committed
bring in latest from 0.2.x
2 parents 9742299 + 1e909c9 commit 3510336

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# Changelog
22

3-
## In Git
4-
* Avoid thread blocking on Ruby 1.9.x under Windows. Patch by Roger Pack.
3+
## 0.3.3 (June 14th, 2011)
4+
* 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.
5+
* added support for turning eager-casting off. This is especially useful in ORMs that will lazily cast values upon access.
6+
* 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
7+
* added Mysql2::Client.escape (class-level method)
8+
* disabled eager-casting in the bundled ActiveRecord adapter (for Rails 3.0 or less)
59

610
## 0.3.2 (April 26th, 2011)
711
* Fix typo in initialization for older ActiveRecord versions
@@ -15,6 +19,13 @@
1519
* BREAKING CHANGE: the ActiveRecord adapter has been pulled into Rails 3.1 and is no longer part of the gem
1620
* added Mysql2::Client.escape (class-level) for raw one-off non-encoding-aware escaping
1721

22+
## 0.2.8 (June 14th, 2011)
23+
* 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.
24+
* added support for turning eager-casting off. This is especially useful in ORMs that will lazily cast values upon access.
25+
* 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
26+
* added Mysql2::Client.escape (class-level method)
27+
* disabled eager-casting in the bundled ActiveRecord adapter (for Rails 3.0 or less)
28+
1829
## 0.2.7 (March 28th, 2011)
1930
* various fixes for em_mysql2 and fiber usage
2031
* use our own Mysql2IndexDefinition class for better compatibility across ActiveRecord versions

lib/mysql2/client.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ class Client
99
:database_timezone => :local, # timezone Mysql2 will assume datetime objects are stored in
1010
:application_timezone => nil, # timezone Mysql2 will convert to before handing the object back to the caller
1111
:cache_rows => true, # tells Mysql2 to use it's internal row cache for results
12-
:connect_flags => REMEMBER_OPTIONS | LONG_PASSWORD | LONG_FLAG | TRANSACTIONS | PROTOCOL_41 | SECURE_CONNECTION
12+
:connect_flags => REMEMBER_OPTIONS | LONG_PASSWORD | LONG_FLAG | TRANSACTIONS | PROTOCOL_41 | SECURE_CONNECTION,
13+
:cast => true
1314
}
1415

1516
def initialize(opts = {})

lib/mysql2/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Mysql2
2-
VERSION = "0.3.2"
2+
VERSION = "0.3.3"
33
end

0 commit comments

Comments
 (0)