dbtsput

Description

Put the new value of the timestamp column into the given table’s current row in the DBPROCESS.

Syntax

RETCODE dbtsput(dbproc, newts, newtslen, tabnum,
              tabname)
 
DBPROCESS     *dbproc;
DBBINARY         *newts;
int                         newtslen;
int                         tabnum;
char                    *tabname;

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.

This must be the DBPROCESS used to perform the original select query.

newts

A pointer to the new timestamp value. It is returned by dbtsnewval.

newtslen

The length of the new timestamp value. It is returned by dbtsnewlen.

tabnum

The number of the updated table. Table numbers start at 1. tabnum must refer to a browsable table. Use dbtabbrowse to determine whether a table is browsable.

If this value is -1, the tabname parameter will be used to identify the table.

tabname

A pointer to a null-terminated table name. tabname must refer to a browsable table. If this pointer is NULL, the tabnum parameter will be used to identify the table.

Returns

SUCCEED or FAIL.

The following situations will cause this routine to return FAIL:

Usage

See also

dbcolbrowse, dbcolsource, dbqual, dbtabbrowse, dbtabcount, dbtabname, dbtabsource, dbtsnewlen, dbtsnewval