* \crosstabview -- execute a query and display results in crosstab */
| 674 | * \crosstabview -- execute a query and display results in crosstab |
| 675 | */ |
| 676 | static backslashResult |
| 677 | exec_command_crosstabview(PsqlScanState scan_state, bool active_branch) |
| 678 | { |
| 679 | backslashResult status = PSQL_CMD_SKIP_LINE; |
| 680 | |
| 681 | if (active_branch) |
| 682 | { |
| 683 | int i; |
| 684 | |
| 685 | for (i = 0; i < lengthof(pset.ctv_args); i++) |
| 686 | pset.ctv_args[i] = psql_scan_slash_option(scan_state, |
| 687 | OT_NORMAL, NULL, true); |
| 688 | pset.crosstab_flag = true; |
| 689 | status = PSQL_CMD_SEND; |
| 690 | } |
| 691 | else |
| 692 | ignore_slash_options(scan_state); |
| 693 | |
| 694 | return status; |
| 695 | } |
| 696 | |
| 697 | /* |
| 698 | * \d* commands |
no test coverage detected