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

Function exec_command_T

src/bin/psql/command.c:2512–2529  ·  view source on GitHub ↗

* \T -- define html attributes */

Source from the content-addressed store, hash-verified

2510 * \T -- define html <table ...> attributes
2511 */
2512static backslashResult
2513exec_command_T(PsqlScanState scan_state, bool active_branch)
2514{
2515 bool success = true;
2516
2517 if (active_branch)
2518 {
2519 char *value = psql_scan_slash_option(scan_state,
2520 OT_NORMAL, NULL, false);
2521
2522 success = do_pset("tableattr", value, &pset.popt, pset.quiet);
2523 free(value);
2524 }
2525 else
2526 ignore_slash_options(scan_state);
2527
2528 return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR;
2529}
2530
2531/*
2532 * \timing -- enable/disable timing of queries

Callers 1

exec_commandFunction · 0.85

Calls 2

do_psetFunction · 0.85
ignore_slash_optionsFunction · 0.85

Tested by

no test coverage detected