Entering content frame

 C/C++ Data Types in sqlvar Entries 

This table shows the possible sqlvar entries hostvartype and the corresponding C/C++ data types.

hostvartype

C/C++ Data Type

sqlvint1     

integer (1 byte)

sqlvint2       

integer (2 bytes)

sqlvint4       

integer (4 bytes)

sqlvint8      

integer (8 bytes)

sqlvuns1      

unsigned integer (1 byte)

sqlvuns2

unsigned integer (2 bytes)

sqlvuns4

unsigned integer (4 bytes)

sqlvuns8

unsigned integer (8 bytes)

sqlvreal4

float (4 bytes)

sqlvreal8

float (8 bytes)

sqlvchar

char array (ends with null byte)

sqlvcharp

char array (filled up with blank characters)

sqlvbyte

char array (null bytes permitted and filled up with null bytes)

sqlvstring1

String with variable length
struct {len char; char array}

sqlvstring2

String with variable length
struct {len short; char array}

sqlvstring4

String with variable length
struct {len int; char array}

sqlvfile

char array (filled up with blank characters)

The value of this parameter must be a file name. See also SQLFILE

sqlvfilec

char array (ends with null byte)

The value of this parameter must be a file name. See also SQLFILE

sqlvlongdesc

SQLLongDesc

sqlvucs2

UCS2 array (filled up with blank characters)

sqlvutf16

UTF16 array without surrogate (filled up with blank characters)

sqlvunicode

UTF8 array (filled up with blank characters)

sqlvunicodec

UTF8 array (ends with null byte)

sqlvstringunicode

UTF8 array with variable length
struct {len short; char array}

sqlvstringunicode4

UTF8 array with variable length
struct {len int; char array}

 

 

Leaving content frame