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

Function exec_command_a

src/bin/psql/command.c:435–449  ·  view source on GitHub ↗

* \a -- toggle field alignment * * This makes little sense but we keep it around. */

Source from the content-addressed store, hash-verified

433 * This makes little sense but we keep it around.
434 */
435static backslashResult
436exec_command_a(PsqlScanState scan_state, bool active_branch)
437{
438 bool success = true;
439
440 if (active_branch)
441 {
442 if (pset.popt.topt.format != PRINT_ALIGNED)
443 success = do_pset("format", "aligned", &pset.popt, pset.quiet);
444 else
445 success = do_pset("format", "unaligned", &pset.popt, pset.quiet);
446 }
447
448 return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR;
449}
450
451/*
452 * \C -- override table title (formerly change HTML caption)

Callers 1

exec_commandFunction · 0.85

Calls 1

do_psetFunction · 0.85

Tested by

no test coverage detected