The int8 data type

Use the int8 data type to declare host variables for database values of type INT8 and SERIAL8.

The following table shows the fields of the structure ifx_int8_t, which represents an INT8 or SERIAL8 value.
Table 1. Fields of the ifx_int8_t structure
Field name Field type Purpose
data unsigned 4-byte integer[INT8SIZE] An array of integer values that make up the 8-byte integer value. When the INT8SIZE constant is defined as 2, this array contains two unsigned 4-byte integers. The actual data type of an unsigned 4-byte integer can be machine specific.
sign short integer A short integer to hold the sign (null, negative, or positive) of the 8-byte integer. The actual data type of a 2-byte integer can be machine specific.
The int8.h header file contains the ifx_int8 structure and a typedef called ifx_int8_t. Include this file in all C source files that use any int8 host variables as shown in the following example:
EXEC SQL include int8;
You can declare an int8 host variable in either of the following ways:
EXEC SQL BEGIN DECLARE SECTION;
   int8 int8_var1;
   ifx_int8_t int8_var2;
EXEC SQL BEGIN DECLARE SECTION;