mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #1702 from brianmario/lazy-mysql2-casting
Turn off mysql2's eager-casting
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -55,7 +55,7 @@ platforms :ruby do
|
||||
group :db do
|
||||
gem "pg", ">= 0.11.0"
|
||||
gem "mysql", ">= 2.8.1"
|
||||
gem "mysql2", ">= 0.3.0"
|
||||
gem "mysql2", ">= 0.3.3"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# encoding: utf-8
|
||||
|
||||
gem 'mysql2', '~> 0.3.0'
|
||||
gem 'mysql2', '~> 0.3.3'
|
||||
require 'mysql2'
|
||||
|
||||
module ActiveRecord
|
||||
@@ -629,7 +629,7 @@ module ActiveRecord
|
||||
end
|
||||
|
||||
def configure_connection
|
||||
@connection.query_options.merge!(:as => :array)
|
||||
@connection.query_options.merge!(:as => :array, :cast => false)
|
||||
|
||||
# By default, MySQL 'where id is null' selects the last inserted id.
|
||||
# Turn this off. http://dev.rubyonrails.org/ticket/6778
|
||||
|
||||
Reference in New Issue
Block a user