Both cursors reference the same data, but can have different positions and flags. Both cursors must be closed using db_close_cursor when no longer needed.
Parameters:
hcursor
Cursor handle.
flags
Duplication options.
Returns:
Handle to duplicate of given cursor.
NULL on failure.
On failure, one of the following error codes is set: