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

Function plpgsql_append_source_text

src/pl/plpgsql/src/pl_scanner.c:406–413  ·  view source on GitHub ↗

* Append the function text starting at startlocation and extending to * (not including) endlocation onto the existing contents of "buf". */

Source from the content-addressed store, hash-verified

404 * (not including) endlocation onto the existing contents of "buf".
405 */
406void
407plpgsql_append_source_text(StringInfo buf,
408 int startlocation, int endlocation)
409{
410 Assert(startlocation <= endlocation);
411 appendBinaryStringInfo(buf, scanorig + startlocation,
412 endlocation - startlocation);
413}
414
415/*
416 * Peek one token ahead in the input stream. Only the token code is

Callers

nothing calls this directly

Calls 1

appendBinaryStringInfoFunction · 0.85

Tested by

no test coverage detected