INFORMIX
DataBlade API Programmer's Manual
Chapter 2: Using DataBlade API Data Types
Home Contents Index Master Index New Book

In This Chapter

To ensure portability across dissimilar hardware platforms, the DataBlade API provides a set of data types that correspond to some common Universal Server types. Informix recommends that you use these data types instead of the standard C data types to ensure portable applications.

(1 of 2)

DataBlade API Type Standard C or ESQL/C Type SQL Type

mi_char

char

mi_char1

char

char1

mi_unsigned_char1

unsigned char

mi_wchar

uint2

mi_string

char

mi_lvarchar

mi_money

dec_t

mi_integer

int, long

integer

mi_int1

char

mi_int8

ifx_int8_t

mi_unsigned_int8

ifx_int8_t

mi_unsigned_integer

mi_smallint

short

smallint

mi_unsigned_smallint

uint2

mi_double_precision

double

double precision

mi_real

float

real

mi_interval

intrvl_t

mi_date

int

mi_datetime

dtime_t

mi_numeric

dec_t

mi_decimal

dec_t

mi_boolean

boolean

mi_pointer

void *

Use the mi_type_byvalue() function to determine whether a type is passed by value or by reference. By-value types must be 4 bytes or smaller.

Use the mi_pointer data type only for communications between user-defined server routines. You cannot pass this type between the database server and a client application. No input/output or send/receive support functions are provided for this data type.




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.