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

Function exec_command_C

src/bin/psql/command.c:454–471  ·  view source on GitHub ↗

* \C -- override table title (formerly change HTML caption) */

Source from the content-addressed store, hash-verified

452 * \C -- override table title (formerly change HTML caption)
453 */
454static backslashResult
455exec_command_C(PsqlScanState scan_state, bool active_branch)
456{
457 bool success = true;
458
459 if (active_branch)
460 {
461 char *opt = psql_scan_slash_option(scan_state,
462 OT_NORMAL, NULL, true);
463
464 success = do_pset("title", opt, &pset.popt, pset.quiet);
465 free(opt);
466 }
467 else
468 ignore_slash_options(scan_state);
469
470 return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR;
471}
472
473/*
474 * \c or \connect -- connect to database using the specified parameters.

Callers 1

exec_commandFunction · 0.85

Calls 2

do_psetFunction · 0.85
ignore_slash_optionsFunction · 0.85

Tested by

no test coverage detected