* \f -- change field separator */
| 1327 | * \f -- change field separator |
| 1328 | */ |
| 1329 | static backslashResult |
| 1330 | exec_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] |
no test coverage detected