diff options
author | Xavier Noria <fxn@hashref.com> | 2011-04-23 00:53:28 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-04-23 00:54:20 +0200 |
commit | df70b9dfb23aa05ed7ae7955ff0fb7eec68de9a3 (patch) | |
tree | a03473cf8797a7f7eac9f397e218263a9516b0d8 /activerecord/lib/active_record | |
parent | ca2f826f5addfeee2b4d5265e7146ad1ead2e37b (diff) | |
download | rails-df70b9dfb23aa05ed7ae7955ff0fb7eec68de9a3.tar.gz rails-df70b9dfb23aa05ed7ae7955ff0fb7eec68de9a3.tar.bz2 rails-df70b9dfb23aa05ed7ae7955ff0fb7eec68de9a3.zip |
copy-edits 0e2644c
Diffstat (limited to 'activerecord/lib/active_record')
3 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb index e73ddc9893..1270a1292c 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb @@ -334,7 +334,7 @@ module ActiveRecord rows end - # Clear prepared statement cache. + # Clears the prepared statements cache. def clear_cache! @statements.values.each do |cache| cache[:stmt].close diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 9fb3139178..3f70d5d0f7 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -237,7 +237,7 @@ module ActiveRecord @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}" diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb index ae885c2a5d..a9dc756bbb 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -98,7 +98,7 @@ module ActiveRecord @connection.close rescue nil end - # Clear prepared statement cache. + # Clears the prepared statements cache. def clear_cache! @statements.clear end |