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

Function footers_with_default

src/fe_utils/print.c:327–343  ·  view source on GitHub ↗

* Return the list of explicitly-requested footers or, when applicable, the * default "(xx rows)" footer. Always omit the default footer when given * non-default footers, "\pset footer off", or a specific instruction to that * effect from a calling backslash command. Vertical formats number each row, * making the default footer redundant; they do not call this function. * * The return value

Source from the content-addressed store, hash-verified

325 * The return value may point to static storage; do not keep it across calls.
326 */
327static printTableFooter *
328footers_with_default(const printTableContent *cont)
329{
330 if (cont->footers == NULL && cont->opt->default_footer)
331 {
332 unsigned long total_records;
333
334 total_records = cont->opt->prior_records + cont->nrows;
335 snprintf(default_footer, sizeof(default_footer),
336 ngettext("(%lu row)", "(%lu rows)", total_records),
337 total_records);
338
339 return &default_footer_cell;
340 }
341 else
342 return cont->footers;
343}
344
345
346/*************************/

Callers 7

print_unaligned_textFunction · 0.85
print_aligned_textFunction · 0.85
print_aligned_verticalFunction · 0.85
print_html_textFunction · 0.85
print_asciidoc_textFunction · 0.85
print_latex_textFunction · 0.85
print_troff_ms_textFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected