Puts the new value of the timestamp column into the given table's current row in the DBPROCESS.
RETCODE dbtsput (
PDBPROCESS dbproc,
LPCDBBINARY newts,
INT newtslen,
INT tabnum,
LPCSTR tabname );
where
SUCCEED or FAIL. The following situations cause this function to return FAIL:
The dbtsput function is one of the DB-Library browse-mode functions. For a detailed discussion of browse mode, see Browse Mode in Programming with DB-Library.
The dbtsput function manipulates the timestamp column. The WHERE clause returned by dbqual contains a call to the TSEQUAL built-in function. When such a WHERE clause is used in an UPDATE statement, the TSEQUAL function places a new value in the updated row's timestamp column and returns the new timestamp value to the application (if the update is successful). If the same row is updated a second time, the UPDATE statement's WHERE clause must use the latest timestamp value. This function updates the timestamp in the DBPROCESS for the row currently being browsed. Then, if the application needs to update the row a second time, it can call dbqual to formulate a new WHERE clause that uses the new timestamp. Call dbtsput only after dbnextrow or dbgetrow has returned reg_row.
dbcolbrowse, dbcolsource, dbqual, dbtabbrowse, dbtabcount, dbtabname, dbtabsource, dbtsnewlen, dbtsnewval; Bulk-Copy Functions