Skip to content

Commit

Permalink
r3269@asus: jeremy | 2005-11-21 04:46:40 -0800
Browse files Browse the repository at this point in the history
 Apply [3148] to stable.  Simpler Mysql load test.


git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/stable@3171 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
jeremy committed Nov 23, 2005
1 parent b87294c commit cc4deb1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Base
# Establishes a connection to the database that's used by all Active Record objects.
def self.mysql_connection(config) # :nodoc:
# Only include the MySQL driver if one hasn't already been loaded
unless self.class.const_defined?(:Mysql)
unless defined? Mysql
begin
require_library_or_gem 'mysql'
# The C version of mysql returns null fields in each_hash if Mysql::VERSION is defined
Expand All @@ -21,7 +21,7 @@ def self.mysql_connection(config) # :nodoc:
end
end
end


config = config.symbolize_keys
host = config[:host]
Expand Down

0 comments on commit cc4deb1

Please sign in to comment.