SE_stream_set_date

Sets the value for a date column

Usage syntax

LONG SE_stream_set_date
(SE_STREAM stream,
SHORT column,
const struct tm *date_val);

Parameters
stream The stream handle
column The column number to set; columns numbers start with the number 1.
date_val Pointer to the date structure
Description

SE_stream_set_date sets the value of a date column, which is used to update or insert a row in a table or layer.

If date_val is NULL, a NULL value is set for this column.

Here is an example of how to set the date value in the struct tm.

   SE_STREAM Stream;
struct tm cdate, last_updated, *curr_time;
time_t long_time;
.
.
.
time(&long_time);
curr_time = localtime(&long_time);
memcpy ((void *) &cdate,(void *) curr_time, sizeof(struct tm);
.
.
.
rc = SE_stream_set_date (Stream, 1, cdate);
.
.
.

Returns

SE_SUCCESS
SE_BIND_CONFLICT

SE_CONNECTION_LOCKED

SE_CONNECTION_IN_USE

SE_FAILURE

SE_FUNCTION_SEQUENCE_ERROR

SE_INVALID_PARAM_VALUE

SE_INVALID_POINTER

SE_INVALID_STREAM

SE_INVALID_STREAM_TYPE

SE_SDE_NOT_STARTED

SE_WRONG_COLUMN_TYPE

Note

∙  An SE_BIND_CONFLICT error is returned if SE_stream_bind_input_column was already called for the specified column or if you call SE_Stream_bind_input_column after calling the SE_stream_set_data function on the same column.