Skip to content

Commit

Permalink
turn on eager-casting in the AR adapter again, it can be turned off i…
Browse files Browse the repository at this point in the history
…n the connection options hash
  • Loading branch information
brianmario committed Jun 16, 2011
1 parent dd8d99c commit 9001cf5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.2.9 (June 15th, 2011)
* fix a long standing bug where a signal would interrupt rb_thread_select and put the connection in a permanently broken state
* turn on casting in the ActiveRecord again, users can disable it if they need to for performance reasons

## 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.
Expand Down
2 changes: 1 addition & 1 deletion lib/active_record/connection_adapters/mysql2_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def connect
end

def configure_connection
@connection.query_options.merge!(:as => :array, :cast => false)
@connection.query_options.merge!(:as => :array)

# By default, MySQL 'where id is null' selects the last inserted id.
# Turn this off. http://dev.rubyonrails.org/ticket/6778
Expand Down
2 changes: 1 addition & 1 deletion lib/mysql2/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Mysql2
VERSION = "0.2.8"
VERSION = "0.2.9"
end

0 comments on commit 9001cf5

Please sign in to comment.