* CREATE FUNCTION dbms_sql.is_open(c int) RETURNS bool; */
| 252 | * CREATE FUNCTION dbms_sql.is_open(c int) RETURNS bool; |
| 253 | */ |
| 254 | Datum |
| 255 | dbms_sql_is_open(PG_FUNCTION_ARGS) |
| 256 | { |
| 257 | CursorData *c; |
| 258 | |
| 259 | c = get_cursor(fcinfo, false); |
| 260 | |
| 261 | PG_RETURN_BOOL(c->assigned); |
| 262 | } |
| 263 | |
| 264 | /* |
| 265 | * Release all sources assigned to cursor |
nothing calls this directly
no test coverage detected