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

Function exec_command_t

src/bin/psql/command.c:2490–2507  ·  view source on GitHub ↗

* \t -- turn off table headers and row count */

Source from the content-addressed store, hash-verified

2488 * \t -- turn off table headers and row count
2489 */
2490static backslashResult
2491exec_command_t(PsqlScanState scan_state, bool active_branch)
2492{
2493 bool success = true;
2494
2495 if (active_branch)
2496 {
2497 char *opt = psql_scan_slash_option(scan_state,
2498 OT_NORMAL, NULL, true);
2499
2500 success = do_pset("tuples_only", opt, &pset.popt, pset.quiet);
2501 free(opt);
2502 }
2503 else
2504 ignore_slash_options(scan_state);
2505
2506 return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR;
2507}
2508
2509/*
2510 * \T -- define html <table ...> attributes

Callers 1

exec_commandFunction · 0.85

Calls 2

do_psetFunction · 0.85
ignore_slash_optionsFunction · 0.85

Tested by

no test coverage detected