Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

copy-edits 0e2644c

  • Loading branch information...
commit df70b9dfb23aa05ed7ae7955ff0fb7eec68de9a3 1 parent ca2f826
@fxn fxn authored
View
2  activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -334,7 +334,7 @@ def select_rows(sql, name = nil)
rows
end
- # Clear prepared statement cache.
+ # Clears the prepared statements cache.
def clear_cache!
@statements.values.each do |cache|
cache[:stmt].close
View
2  activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -237,7 +237,7 @@ def initialize(connection, logger, connection_parameters, config)
@local_tz = execute('SHOW TIME ZONE', 'SCHEMA').first["TimeZone"]
end
- # Clear prepared statement cache.
+ # Clears the prepared statements cache.
def clear_cache!
@statements.each_value do |value|
@connection.query "DEALLOCATE #{value}"
View
2  activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
@@ -98,7 +98,7 @@ def disconnect!
@connection.close rescue nil
end
- # Clear prepared statement cache.
+ # Clears the prepared statements cache.
def clear_cache!
@statements.clear
end
Please sign in to comment.
Something went wrong with that request. Please try again.