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

Function SPI_cursor_find

src/backend/executor/spi.c:1836–1850  ·  view source on GitHub ↗

* SPI_cursor_find() * * Find the portal of an existing open cursor */

Source from the content-addressed store, hash-verified

1834 * Find the portal of an existing open cursor
1835 */
1836Portal
1837SPI_cursor_find(const char *name)
1838{
1839 Portal portal = GetPortalByName(name);
1840
1841 if (portal != NULL && PortalIsParallelRetrieveCursor(portal))
1842 {
1843 ereport(ERROR,
1844 (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
1845 errmsg("The PARALLEL RETRIEVE CURSOR is not supported in SPI."),
1846 errhint("Use normal cursor statement instead.")));
1847 }
1848
1849 return portal;
1850}
1851
1852
1853/*

Callers 8

exec_stmt_forcFunction · 0.85
exec_stmt_openFunction · 0.85
exec_stmt_fetchFunction · 0.85
exec_stmt_closeFunction · 0.85
plperl_spi_fetchrowFunction · 0.85
plperl_spi_cursor_closeFunction · 0.85
cursor_to_xmlFunction · 0.85
cursor_to_xmlschemaFunction · 0.85

Calls 4

GetPortalByNameFunction · 0.85
errcodeFunction · 0.50
errmsgFunction · 0.50
errhintFunction · 0.50

Tested by

no test coverage detected