XSQLDA Field Descriptions

From InterBase

Go Up to Understanding the XSQLDA


The following table describes the fields in 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; the application should set this field whenever it allocates storage for a descriptor.

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 an isc_dsql_describe(), ­isc_dsql_describe_bind(), or isc_dsql_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: