Skip to content
This repository
Browse code

Merge pull request #1724 from brianmario/lazy-mysql2-casting

re-enable eager-casting for mysql2
  • Loading branch information...
commit 014008d349d3374a37c207b115fa3583179fefa9 2 parents a7039df + d2b1340
Santiago Pastorino authored June 15, 2011
2  Gemfile
@@ -55,7 +55,7 @@ platforms :ruby do
55 55
   group :db do
56 56
     gem "pg", ">= 0.11.0"
57 57
     gem "mysql", ">= 2.8.1"
58  
-    gem "mysql2", ">= 0.3.3"
  58
+    gem "mysql2", ">= 0.3.4"
59 59
   end
60 60
 end
61 61
 
4  activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb
... ...
@@ -1,6 +1,6 @@
1 1
 # encoding: utf-8
2 2
 
3  
-gem 'mysql2', '~> 0.3.3'
  3
+gem 'mysql2', '~> 0.3.4'
4 4
 require 'mysql2'
5 5
 
6 6
 module ActiveRecord
@@ -629,7 +629,7 @@ def connect
629 629
         end
630 630
 
631 631
         def configure_connection
632  
-          @connection.query_options.merge!(:as => :array, :cast => false)
  632
+          @connection.query_options.merge!(:as => :array)
633 633
 
634 634
           # By default, MySQL 'where id is null' selects the last inserted id.
635 635
           # Turn this off. http://dev.rubyonrails.org/ticket/6778

0 notes on commit 014008d

Please sign in to comment.
Something went wrong with that request. Please try again.