Module: ODBCAdapter::DatabaseLimits

Included in:
ActiveRecord::ConnectionAdapters::ODBCAdapter
Defined in:
lib/odbc_adapter/database_limits.rb

Instance Method Summary collapse

Instance Method Details

#table_alias_lengthObject

Returns the maximum length of a table name.



4
5
6
7
8
# File 'lib/odbc_adapter/database_limits.rb', line 4

def table_alias_length
  max_identifier_length = .max_identifier_len
  max_table_name_length = .max_table_name_len
  [max_identifier_length, max_table_name_length].max
end