Skip to content

Commit

Permalink
Merge pull request rails#1724 from brianmario/lazy-mysql2-casting
Browse files Browse the repository at this point in the history
re-enable eager-casting for mysql2
  • Loading branch information
spastorino committed Jun 16, 2011
2 parents a7039df + d2b1340 commit 014008d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Expand Up @@ -55,7 +55,7 @@ platforms :ruby do
group :db do
gem "pg", ">= 0.11.0"
gem "mysql", ">= 2.8.1"
gem "mysql2", ">= 0.3.3"
gem "mysql2", ">= 0.3.4"
end
end

Expand Down
@@ -1,6 +1,6 @@
# encoding: utf-8

gem 'mysql2', '~> 0.3.3'
gem 'mysql2', '~> 0.3.4'
require 'mysql2'

module ActiveRecord
Expand Down Expand Up @@ -629,7 +629,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

0 comments on commit 014008d

Please sign in to comment.