Programming Guide |
Verifies that a cursor is open
#include <dmuproto.h>int dm_is_cursor(char *cursor_name);
cursor_name
- Specifies a cursor name. For a named cursor, use the name specified in a
DBMS DECLARE CURSOR
command. For a default cursor, specifycursor_name
as beingdefault_cursor
or as being0
.
#include <smdefs.h>
#include <dmuproto.h>
int free_resources()
{
if (dm_is_cursor("work_cursor"))
{
dm_dbms("close cursor work_cursor");
}
return 0
}