Sha256: 2317aaf66bee136e90be12b396fb45e3e17e75642af2e59cff7db7bc8f95469e

Contents?: true

Size: 329 Bytes

Versions: 5

Compression:

Stored size: 329 Bytes

Contents

module ODBCAdapter
  module DatabaseLimits
    # Returns the maximum length of a table name.
    def table_alias_length
      max_identifier_length = database_metadata.max_identifier_len
      max_table_name_length = database_metadata.max_table_name_len
      [max_identifier_length, max_table_name_length].max
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
db2_odbc_adapter-0.0.1 lib/odbc_adapter/database_limits.rb
odbc_adapter-5.0.5 lib/odbc_adapter/database_limits.rb
odbc_adapter-5.0.3 lib/odbc_adapter/database_limits.rb
odbc_adapter-5.0.2 lib/odbc_adapter/database_limits.rb
odbc_adapter-5.0.1 lib/odbc_adapter/database_limits.rb