Permalink
Browse files

updates return number of rows matched rather than number of rows affe…

…cted
  • Loading branch information...
1 parent ad06326 commit e509d4afc9ed4e8dd9f1880c375815df9e489cff @tenderlove tenderlove committed Aug 20, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -31,6 +31,7 @@ def self.mysql_connection(config) # :nodoc:
mysql.ssl_set(config[:sslkey], config[:sslcert], config[:sslca], config[:sslcapath], config[:sslcipher]) if config[:sslca] || config[:sslkey]
default_flags = Mysql.const_defined?(:CLIENT_MULTI_RESULTS) ? Mysql::CLIENT_MULTI_RESULTS : 0
+ default_flags |= Mysql::CLIENT_FOUND_ROWS if Mysql.const_defined?(:CLIENT_FOUND_ROWS)
options = [host, username, password, database, port, socket, default_flags]
ConnectionAdapters::MysqlAdapter.new(mysql, logger, options, config)
end

0 comments on commit e509d4a

Please sign in to comment.