lrd_close_cursor
Closes a database cursor.
LRDRET lrd_close_cursor( LRD_CURSOR **mpptCursor, int miDBErrorSeverity);
| mpptCursor | A pointer to a pointer to an LRD_CURSOR structure. |
| miDBErrorSeverity | The Error Severity Levels of a failure in a database routine. |
The lrd_close_cursor function closes the specified database cursor. Once you close a cursor, you can no longer execute an SQL statement using that cursor.
For more details refer to the Function Header File lrd.h in the include directory.
Return Values
See LRD Return Values.
Parameterization
You cannot use standard parameterization for any arguments in this function.
Example
In the following example, lrd_close_cursor closes two cursors Csr1 and Csr2 after dropping the table.
lrd_stmt(Csr1, "drop table employees", -1, 0 /*Non deferred*/, 2 /*Ora V7*/, 0);
lrd_close_cursor(&Csr1, 0);
lrd_close_cursor(&Csr2, 0);
lrd_close_connection(&Con1, 0, 0);

