7. Embedded SQL for Pascal : Pascal Variables and Data Types : Embedded SQL/Pascal Declarations : Integer Data Types
 
Share this page                  
Integer Data Types
Several Pascal types are considered as integer type by the preprocessor as shown in the following table.
Description
Example
integer
Integer
4-byte subrange of integer
1..127
2-byte subrange of integer
[word] 0..32767
1-byte subrange of integer
[byte] 0..63
enumeration
(red, blue, green)
boolean
Boolean
The preprocessor can accept all integer types. Even though some integer types have Pascal constraints, such as the subranges and enumerations, Embedded SQL does not check these constraints, either during preprocessing or at runtime.
The type boolean is handled as a special type of integer. Embedded SQL treats the boolean type as an enumerated type and generates the correct code in order to use this type to interact with an Ingres integer. Enumerated types are described in more detail later.