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

Function PLy_exception_set_plural

src/pl/plpython/plpy_elog.c:499–514  ·  view source on GitHub ↗

same, with pluralized message */

Source from the content-addressed store, hash-verified

497
498/* same, with pluralized message */
499void
500PLy_exception_set_plural(PyObject *exc,
501 const char *fmt_singular, const char *fmt_plural,
502 unsigned long n,...)
503{
504 char buf[1024];
505 va_list ap;
506
507 va_start(ap, n);
508 vsnprintf(buf, sizeof(buf),
509 dngettext(TEXTDOMAIN, fmt_singular, fmt_plural, n),
510 ap);
511 va_end(ap);
512
513 PyErr_SetString(exc, buf);
514}
515
516/* set attributes of the given exception to details from ErrorData */
517void

Callers 2

PLy_cursor_planFunction · 0.85
PLy_spi_execute_planFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected