We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcc5dcc commit 3b94a38Copy full SHA for 3b94a38
1 file changed
lib/active_record/connection_adapters/oracle_enhanced_adapter.rb
@@ -867,9 +867,9 @@ def check_version # :nodoc:
867
# instance-level cursor_sharing setting.
868
when nil
869
# No explicit :cursor_sharing. Apply the legacy "force" default only
870
- # when the caller has explicitly disabled prepared_statements; with
871
- # prepared_statements on (the Rails default), AR is binding literals
872
- # already and the adapter no longer overrides the server value.
+ # when the caller has explicitly opted out of prepared_statements;
+ # otherwise AR is binding literals via prepared statements and the
+ # adapter no longer overrides the server's cursor_sharing.
873
if @config[:prepared_statements] == false
874
execute("alter session set cursor_sharing = FORCE", "SCHEMA")
875
end
0 commit comments