Salesforce

What is the default MAX-WIDTH for each field type?

« Go Back

Information

 
TitleWhat is the default MAX-WIDTH for each field type?
URL Name000053071
Article Number000170638
EnvironmentProduct: OpenEdge
Version: 10.x, 11.x
OS: All supported platforms
Other: ABL/SQL
Question/Problem Description
What is the default value for the MAX-WIDTH within the database schema?
 
Steps to Reproduce
Clarifying Information
What is the default value for MAX-WIDTH for each type of field?
Error Message
Defect Number
Enhancement Number
Cause
Resolution

The MAX-WIDTH term in the ABL refers to the max width of a datatype for OE sql.

The sql width, for a column defined in the ABL, depends on the datatype.

The character type will have a default sql width of twice the format size.

For decimal types, width is proportional to number of digits in the entire number (before and after dec pt).

These are the types where the sql width matters.

For integer, and date types, sql width is 4.
For int64, timestamp types, sql width is 8.
For datetime and datetime-tz width is 12
For these number types and others, sql width does not affect sql behavior.
For varchar, max length is 31,995.

The MAX-WIDTH is for SQL because OpenEdge is truly a variable length field but SQL must have a maximum length. Their variable length for SQL means the field will contain what is assigned to it up to a maximum size. The number fields default to the actual storage size.

Workaround
Notes
References to other Documentation:

SQL Reference : OpenEdge SQL Language Elements : Data types : Character data types:
https://documentation.progress.com/output/ua/OpenEdge_latest/index.html#page/dmsrf/character-data-types.html

Database Administration: Database Basics : OpenEdge RDBMS Limits : Data types and values:
https://documentation.progress.com/output/ua/OpenEdge_latest/index.html#page/dmadm/data-types-and-values.html

SQL Reference : OpenEdge SQL Language Elements : Data types : Character data types : Maximum length for VARCHAR:
https://documentation.progress.com/output/ua/OpenEdge_latest/index.html#page/dmsrf/maximum-length-for-varchar.html
 
Keyword Phrase
Last Modified Date11/22/2018 12:28 AM

Powered by