| 173 | static CursorData cursors[MAX_CURSORS]; |
| 174 | |
| 175 | static void |
| 176 | open_cursor(CursorData *c, int cid) |
| 177 | { |
| 178 | c->cid = cid; |
| 179 | |
| 180 | if (!persist_cxt) |
| 181 | { |
| 182 | persist_cxt = AllocSetContextCreate(NULL, |
| 183 | "dbms_sql persist context", |
| 184 | ALLOCSET_DEFAULT_SIZES); |
| 185 | memset(cursors, 0, sizeof(cursors)); |
| 186 | } |
| 187 | |
| 188 | c->cursor_cxt = AllocSetContextCreate(persist_cxt, |
| 189 | "dbms_sql cursor context", |
| 190 | ALLOCSET_DEFAULT_SIZES); |
| 191 | c->assigned = true; |
| 192 | } |
| 193 | |
| 194 | /* |
| 195 | * FUNCTION dbms_sql.open_cursor() RETURNS int |
no outgoing calls
no test coverage detected