SE_state_merge

Merges two states to form a new state.

Usage syntax

LONG SE_state_merge (SE_CONNECTION connection, LONG parent_state_id, LONG changes_state_id, SE_STATEINFO merged_state);

Parameters
connection The connection handle
parent_state A pointer to the parent state
changes_state A pointer to the state with changes
merged_state A pointer to the new merged state
Description

SE_state_merge applies changes to a parent state to create a new merged state. The new state is the child of the parent state with the changes of the second state. Both input states must have the same parent state. When a row has been changed in both  parent and second states, the row  from the changes state is used. The parent and changes states must be open or owned by the current user unless the current user is the ArcSDE DBA.

Returns

SE_SUCCESS
SE_DB_IO_ERROR

SE_FAILURE

SE_INVALID_POINTER

SE_INVALID_STATE_ID

SE_INVALID_STATEINFO_OBJECT

SE_NET_FAILURE

SE_NO_PERMISSIONS

SE_NOT_TABLE_OWNER

SE_OUT_OF_SVMEM

SE_PARENT_NOT_CLOSED

SE_STATE_INUSE

SE_STATE_NOEXIST

SE_STATES_ARE_SAME

SE_SDE_NOT_STARTED

SE_TABLE_NOEXIST