Skip to content

Commit 67f2d57

Browse files
committed
Rails compat - #native_database_types
1 parent 31387aa commit 67f2d57

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/active_record/connection_adapters/oracle_enhanced_adapter.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def supports_longer_identifier?
410410
# :startdoc:
411411

412412
def native_database_types # :nodoc:
413-
emulate_booleans_from_strings ? NATIVE_DATABASE_TYPES_BOOLEAN_STRINGS : NATIVE_DATABASE_TYPES
413+
self.class.native_database_types
414414
end
415415

416416
# CONNECTION MANAGEMENT ====================================
@@ -711,6 +711,10 @@ def check_version
711711
end
712712

713713
class << self
714+
def native_database_types
715+
emulate_booleans_from_strings ? NATIVE_DATABASE_TYPES_BOOLEAN_STRINGS : NATIVE_DATABASE_TYPES
716+
end
717+
714718
def type_map
715719
@type_map ||= Type::TypeMap.new.tap { |m| initialize_type_map(m) }
716720
@type_map

0 commit comments

Comments
 (0)