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

Function exec_command_f

src/bin/psql/command.c:1329–1346  ·  view source on GitHub ↗

* \f -- change field separator */

Source from the content-addressed store, hash-verified

1327 * \f -- change field separator
1328 */
1329static backslashResult
1330exec_command_f(PsqlScanState scan_state, bool active_branch)
1331{
1332 bool success = true;
1333
1334 if (active_branch)
1335 {
1336 char *fname = psql_scan_slash_option(scan_state,
1337 OT_NORMAL, NULL, false);
1338
1339 success = do_pset("fieldsep", fname, &pset.popt, pset.quiet);
1340 free(fname);
1341 }
1342 else
1343 ignore_slash_options(scan_state);
1344
1345 return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR;
1346}
1347
1348/*
1349 * \g [(pset-option[=pset-value] ...)] [filename/shell-command]

Callers 1

exec_commandFunction · 0.85

Calls 2

do_psetFunction · 0.85
ignore_slash_optionsFunction · 0.85

Tested by

no test coverage detected