MCPcopy Create free account
hub / github.com/apache/cloudberry / open_cursor

Function open_cursor

gpcontrib/orafce/dbms_sql.c:175–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173static CursorData cursors[MAX_CURSORS];
174
175static void
176open_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

Callers 2

dbms_sql_open_cursorFunction · 0.85
dbms_sql_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected