dbanullbind

Description

Associate an indicator variable with a compute-row column.

Syntax

RETCODE dbanullbind(dbproc, computeid, column,
                  indicator)
 
DBPROCESS    *dbproc;
int                      computeid;
int                      column;
DBINT                *indicator;

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.

computeid

The compute row of interest. A select statement may have multiple compute clauses, each of which returns a separate compute row. The computeid corresponding to the first compute clause in a select is 1.

column

The number of the column that is to be associated with the indicator variable.

indicator

A pointer to the indicator variable.

Noteindicator is just the pointer to the indicator variable. It is the variable itself that is set.

Returns

SUCCEED or FAIL.

dbanullbind returns FAIL if either computeid or column is invalid.

Usage

NoteDetection of character string truncation is implemented only for CHARBIND and VARYCHARBIND.

See also

dbadata, dbadlen, dbaltbind, dbnextrow, dbnullbind