DBcursor->close API Ref

#include <db.h>

int DBcursor->close(DBC *DBcursor);


Description: DBcursor->close

The DBcursor->close method discards the cursor.

It is possible for the DBcursor->close method to return DB_LOCK_DEADLOCK, signaling that any enclosing transaction should be aborted. If the application is already intending to abort the transaction, this error should be ignored, and the application should proceed.

After DBcursor->close has been called, regardless of its return, the cursor handle may not be used again.

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


Errors

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


DB_LOCK_DEADLOCK DB_LOCK_NOTGRANTED

EINVAL


Class DBC
See Also Database Cursors and Related Methods

APIRef

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