DBcursor->dup API Ref

#include <db.h>

int DBcursor->dup(DBC *DBcursor, DBC **cursorp, u_int32_t flags);


Description: DBcursor->dup

The DBcursor->dup method creates a new cursor that uses the same transaction and locker ID as the original cursor. This is useful when an application is using locking and requires two or more cursors in the same thread of control.

The DBcursor->dup method returns a non-zero error value on failure and 0 on success.

Parameters
flags

Errors

The DBcursor->dup method may fail and return one of the following non-zero errors:


DB_REP_HANDLE_DEAD

DB_REP_LOCKOUT

EINVAL


Class DBC
See Also Database Cursors and Related Methods

APIRef

Copyright (c) 1996,2008 Oracle. All rights reserved.