Skip to content

Commit c7839e7

Browse files
authored
Merge pull request #2110 from yahonda/diag_2090
Remove /*+ OPTIMIZER_FEATURES_ENABLE('11.2.0.2') */ hint for all_synonyms
2 parents 3bce56b + df2be45 commit c7839e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/active_record/connection_adapters/oracle_enhanced/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def describe(name)
3434
table_owner, table_name = default_owner, real_name
3535
end
3636
sql = <<~SQL.squish
37-
SELECT /*+ OPTIMIZER_FEATURES_ENABLE('11.2.0.2') */ owner, table_name, 'TABLE' name_type
37+
SELECT owner, table_name, 'TABLE' name_type
3838
FROM all_tables
3939
WHERE owner = '#{table_owner}'
4040
AND table_name = '#{table_name}'

lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def materialized_views #:nodoc:
7676
# get synonyms for schema dump
7777
def synonyms
7878
result = select_all(<<~SQL.squish, "SCHEMA")
79-
SELECT /*+ OPTIMIZER_FEATURES_ENABLE('11.2.0.2') */ synonym_name, table_owner, table_name
79+
SELECT synonym_name, table_owner, table_name
8080
FROM all_synonyms where owner = SYS_CONTEXT('userenv', 'current_schema')
8181
SQL
8282

0 commit comments

Comments
 (0)