Skip to content

Commit 7c85e93

Browse files
committed
Temporarily disable ARJDBC statement caching, we need to fix this later.
- it was disabled to so we can focus on fixing the core part first - cannot run tests, process crashes
1 parent 11bd7d2 commit 7c85e93

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/arjdbc/postgresql/adapter.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,11 @@ def write_query?(sql) # :nodoc:
464464
# since apparently calling close on the statement object
465465
# doesn't always free the server resources and calling
466466
# 'DISCARD ALL' fails if we are inside a transaction
467-
def clear_cache!
468-
super
469-
# Make sure all query plans are *really* gone
470-
@connection.execute 'DEALLOCATE ALL' if active?
471-
end
467+
# def clear_cache!
468+
# super
469+
# # Make sure all query plans are *really* gone
470+
# @connection.execute 'DEALLOCATE ALL' if active?
471+
# end
472472

473473
def reset!
474474
clear_cache!
@@ -747,7 +747,7 @@ class PostgreSQLAdapter < AbstractAdapter
747747
include ArJdbc::Abstract::Core
748748
include ArJdbc::Abstract::ConnectionManagement
749749
include ArJdbc::Abstract::DatabaseStatements
750-
include ArJdbc::Abstract::StatementCache
750+
# include ArJdbc::Abstract::StatementCache
751751
include ArJdbc::Abstract::TransactionSupport
752752
include ArJdbc::PostgreSQL
753753

0 commit comments

Comments
 (0)