mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
copy-edits 0e2644c
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user