Skip to content

Add Oracle-specific integer minimum value limitation #474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ref/data/database/database-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The following table represents how OutSystems data types are mapped to the data
OutSystems | SQL Server / SQL Azure | Oracle | Obs.
---|---|---|---
Text | nvarchar(<length>) if the length is less than or equal to 2000, NVarchar(max) otherwise. | VARCHAR2(<length>), if the length is less than or equal to 2000, CLOB otherwise. |
Integer | int If an attribute with this type is set to auto number, the IDENTITY attribute is added. | NUMBER(10) If an attribute with this type is set to auto number, a sequence is added. |
Integer | int If an attribute with this type is set to auto number, the IDENTITY attribute is added. | NUMBER(10) If an attribute with this type is set to auto number, a sequence is added. | When using Oracle, the practical minimum value in static entities is -2147483647, despite the theoretical minimum of -2147483648. This limitation is due to Oracle's NUMBER(10) implementation. When working with values near the integer boundaries or migrating data from other systems, ensure your data validation accounts for this limitation. For auto-numbered attributes, the sequence generation is not affected by this constraint.
Long Integer | bigint If an attribute with this type is set to auto number, the IDENTITY attribute is added. | NUMBER(20) If an attribute with this type is set to auto number, a sequence is added. |
Decimal | decimal() The precision and scale values, are the ones defined by the Length and Decimals properties of the attribute. | NUMBER() The precision and scale values, are the ones defined by the Length and Decimals properties of the attribute. | At runtime, when values are read from (or saved to) the database, the number of decimal digits depends on the stack of the application server. Consider the restrictions of System.Decimal.
Boolean | bit | NUMBER(1) |
Expand Down