Module: ODBCAdapter::DatabaseLimits
- Included in:
- ActiveRecord::ConnectionAdapters::ODBCAdapter
- Defined in:
- lib/odbc_adapter/database_limits.rb
Instance Method Summary collapse
-
#table_alias_length ⇒ Object
Returns the maximum length of a table name.
Instance Method Details
#table_alias_length ⇒ Object
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 = dbms.field_for(ODBC::SQL_MAX_IDENTIFIER_LEN) max_table_name_length = dbms.field_for(ODBC::SQL_MAX_TABLE_NAME_LEN) [max_identifier_length, max_table_name_length].max end |