summaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r--src/bin/psql/command.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 227d1805d44..4fa7760a2a9 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -368,13 +368,11 @@ exec_command(const char *cmd,
/* \crosstabview -- execute a query and display results in crosstab */
else if (strcmp(cmd, "crosstabview") == 0)
{
- pset.ctv_col_V = psql_scan_slash_option(scan_state,
- OT_NORMAL, NULL, false);
- pset.ctv_col_H = psql_scan_slash_option(scan_state,
- OT_NORMAL, NULL, false);
- pset.ctv_col_D = psql_scan_slash_option(scan_state,
- OT_NORMAL, NULL, false);
+ int i;
+ for (i = 0; i < lengthof(pset.ctv_args); i++)
+ pset.ctv_args[i] = psql_scan_slash_option(scan_state,
+ OT_NORMAL, NULL, true);
pset.crosstab_flag = true;
status = PSQL_CMD_SEND;
}