![]() | 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 CURSORcommand. For a default cursor, specifycursor_nameas beingdefault_cursoror 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
}
![]()
![]()
![]()
![]()