Skip to content

Commit 9001cf5

Browse files
committed
turn on eager-casting in the AR adapter again, it can be turned off in the connection options hash
1 parent dd8d99c commit 9001cf5

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.2.9 (June 15th, 2011)
4+
* fix a long standing bug where a signal would interrupt rb_thread_select and put the connection in a permanently broken state
5+
* turn on casting in the ActiveRecord again, users can disable it if they need to for performance reasons
6+
37
## 0.2.8 (June 14th, 2011)
48
* 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.
59
* added support for turning eager-casting off. This is especially useful in ORMs that will lazily cast values upon access.

lib/active_record/connection_adapters/mysql2_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def connect
562562
end
563563

564564
def configure_connection
565-
@connection.query_options.merge!(:as => :array, :cast => false)
565+
@connection.query_options.merge!(:as => :array)
566566

567567
# By default, MySQL 'where id is null' selects the last inserted id.
568568
# Turn this off. http://dev.rubyonrails.org/ticket/6778

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.2.8"
2+
VERSION = "0.2.9"
33
end

0 commit comments

Comments
 (0)