XSQLDA Field Descriptions (Embedded SQL Guide)

From InterBase

Go Up to Understanding the XSQLDA (Embedded SQL Guide)


The following table describes the fields that comprise the XSQLDA structure:

Field definition Description

short version

Indicates the version of the XSQLDA structure. Set this to SQLDA_CURRENT_VERSION,which is defined in ibase.h.

char sqldaid[8]

Reserved for future use.

ISC_LONG sqldabc

Reserved for future use.

short sqln

Indicates the number of elements in the sqlvar array. Set by the application. Whenever the application allocates storage for a descriptor, it should set this field.

short sqld

Indicates the number of parameters (for an input XSQLDA), or the number of select-list items (for an output XSQLDA). Set by InterBase during a DESCRIBE or PREPARE.

For an input descriptor, a sqld of 0 indicates that the SQL statement has no parameters. For an output descriptor, a sqld of 0 indicates that the SQL statement is not a SELECT statement.

XSQLVAR sqlvar

The array of XSQLVAR structures. The number of elements in the array is specified in the sqln field.

Advance To: