Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5929

Show
Ignore:
Timestamp:
01/14/07 15:19:18 (2 years ago)
Author:
bitsweat
Message:

MySQL: retain SSL settings on reconnect. Closes #6976.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/activerecord/CHANGELOG

    r5919 r5929  
    11*SVN* 
     2 
     3* MySQL: retain SSL settings on reconnect.  #6976 [randyv2] 
    24 
    35* Apply scoping during initialize instead of create.  Fixes setting of foreign key when using find_or_initialize_by with scoping. [Cody Fauser] 
  • trunk/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb

    r5596 r5929  
    386386            @connection.options(Mysql::SET_CHARSET_NAME, encoding) rescue nil 
    387387          end 
     388          @connection.ssl_set(@config[:sslkey], @config[:sslcert], @config[:sslca], @config[:sslcapath], @config[:sslcipher]) if @config[:sslkey] 
    388389          @connection.real_connect(*@connection_options) 
    389390          execute("SET NAMES '#{encoding}'") if encoding