* \C -- override table title (formerly change HTML caption) */
| 452 | * \C -- override table title (formerly change HTML caption) |
| 453 | */ |
| 454 | static backslashResult |
| 455 | exec_command_C(PsqlScanState scan_state, bool active_branch) |
| 456 | { |
| 457 | bool success = true; |
| 458 | |
| 459 | if (active_branch) |
| 460 | { |
| 461 | char *opt = psql_scan_slash_option(scan_state, |
| 462 | OT_NORMAL, NULL, true); |
| 463 | |
| 464 | success = do_pset("title", opt, &pset.popt, pset.quiet); |
| 465 | free(opt); |
| 466 | } |
| 467 | else |
| 468 | ignore_slash_options(scan_state); |
| 469 | |
| 470 | return success ? PSQL_CMD_SKIP_LINE : PSQL_CMD_ERROR; |
| 471 | } |
| 472 | |
| 473 | /* |
| 474 | * \c or \connect -- connect to database using the specified parameters. |
no test coverage detected