Associate an indicator variable with a regular result row column.
RETCODE dbnullbind(dbproc, column, indicator) DBPROCESS *dbproc; int column; DBINT *indicator;
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.
The number of the column that is to be associated with the indicator variable.
A pointer to the indicator variable.
SUCCEED or FAIL.
dbnullbind returns FAIL if column is invalid.
dbnullbind associates a regular result row column with an indicator variable. The indicator variable indicates whether a particular regular result row’s column has been converted and copied to a program variable successfully or unsuccessfully, or whether it is null.
The indicator variable is set when regular result rows are processed using dbnextrow. The possible values are:
-1 if the column is NULL.
The full length of column’s data, in bytes, if column was bound to a program variable using dbbind, the binding did not specify any data conversions, and the bound data was truncated because the program variable was too small to hold column’s data.
0 if column was bound and copied successfully to a program variable.
Detection of character string truncation is implemented only for CHARBIND and VARYCHARBIND.