mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #32310 from sodabrew/mysql2-0.4-0.5
Support mysql2 0.4.x and 0.5.x
This commit is contained in:
commit
7e06d9cb2c
2 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
require "active_record/connection_adapters/abstract_mysql_adapter"
|
require "active_record/connection_adapters/abstract_mysql_adapter"
|
||||||
require "active_record/connection_adapters/mysql/database_statements"
|
require "active_record/connection_adapters/mysql/database_statements"
|
||||||
|
|
||||||
gem "mysql2", "~> 0.4.4"
|
gem "mysql2", ">= 0.4.4", "< 0.6.0"
|
||||||
require "mysql2"
|
require "mysql2"
|
||||||
|
|
||||||
module ActiveRecord
|
module ActiveRecord
|
||||||
|
|
|
@ -299,7 +299,7 @@ module Rails
|
||||||
def gem_for_database
|
def gem_for_database
|
||||||
# %w( mysql postgresql sqlite3 oracle frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql )
|
# %w( mysql postgresql sqlite3 oracle frontbase ibm_db sqlserver jdbcmysql jdbcsqlite3 jdbcpostgresql )
|
||||||
case options[:database]
|
case options[:database]
|
||||||
when "mysql" then ["mysql2", ["~> 0.4.4"]]
|
when "mysql" then ["mysql2", [">= 0.4.4", "< 0.6.0"]]
|
||||||
when "postgresql" then ["pg", [">= 0.18", "< 2.0"]]
|
when "postgresql" then ["pg", [">= 0.18", "< 2.0"]]
|
||||||
when "oracle" then ["activerecord-oracle_enhanced-adapter", nil]
|
when "oracle" then ["activerecord-oracle_enhanced-adapter", nil]
|
||||||
when "frontbase" then ["ruby-frontbase", nil]
|
when "frontbase" then ["ruby-frontbase", nil]
|
||||||
|
|
Loading…
Reference in a new issue