Module: ActiveRecord::ConnectionAdapters::OracleEnhanced::DatabaseLimits

Included in:
ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter
Defined in:
lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb

Constant Summary collapse

IDENTIFIER_MAX_LENGTH =

maximum length of Oracle identifiers

30

Instance Method Summary collapse

Instance Method Details

#column_name_lengthObject

the maximum length of a column name



23
24
25
# File 'lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb', line 23

def column_name_length
  IDENTIFIER_MAX_LENGTH
end

#in_clause_lengthObject

To avoid ORA-01795: maximum number of expressions in a list is 1000 tell ActiveRecord to limit us to 1000 ids at a time



41
42
43
# File 'lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb', line 41

def in_clause_length
  1000
end

#index_name_lengthObject

the maximum length of an index name supported by this database



30
31
32
# File 'lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb', line 30

def index_name_length
  IDENTIFIER_MAX_LENGTH
end

#sequence_name_lengthObject

the maximum length of a sequence name



35
36
37
# File 'lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb', line 35

def sequence_name_length
  IDENTIFIER_MAX_LENGTH
end

#table_alias_lengthObject

:nodoc:



12
13
14
# File 'lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb', line 12

def table_alias_length # :nodoc:
  IDENTIFIER_MAX_LENGTH
end

#table_name_lengthObject

the maximum length of a table name



17
18
19
# File 'lib/active_record/connection_adapters/oracle_enhanced/database_limits.rb', line 17

def table_name_length
  IDENTIFIER_MAX_LENGTH
end