|
42 | 42 | #include "mainloop.h" |
43 | 43 | #include "pqexpbuffer.h" |
44 | 44 | #include "psqlscanslash.h" |
45 | | -#include "ora_psqlscanslash.h" |
| 45 | +#include "ora_psqlscanslash.h" |
46 | 46 | #include "settings.h" |
47 | 47 | #include "variables.h" |
48 | 48 |
|
@@ -311,7 +311,7 @@ HandleSlashCmds(PsqlScanState scan_state, |
311 | 311 | /* if there is a trailing \\, swallow it */ |
312 | 312 | if (db_mode == DB_PG) |
313 | 313 | psql_scan_slash_command_end(scan_state); |
314 | | - else if(db_mode == DB_ORACLE) |
| 314 | + else if (db_mode == DB_ORACLE) |
315 | 315 | ora_psql_scan_slash_command_end(scan_state); |
316 | 316 |
|
317 | 317 | free(cmd); |
@@ -1059,6 +1059,7 @@ exec_command_d(PsqlScanState scan_state, bool active_branch, const char *cmd) |
1059 | 1059 | show_system = strchr(cmd, 'S') ? true : false; |
1060 | 1060 |
|
1061 | 1061 | getDbCompatibleMode(pset.db); |
| 1062 | + |
1062 | 1063 | /* |
1063 | 1064 | * The 'x' option turns expanded mode on for this command only. This |
1064 | 1065 | * is allowed in all \d* commands, except \d by itself, since \dx is a |
@@ -3628,6 +3629,7 @@ static backslashResult |
3628 | 3629 | exec_command_parser(PsqlScanState scan_state, bool active_branch) |
3629 | 3630 | { |
3630 | 3631 | bool success = true; |
| 3632 | + |
3631 | 3633 | if (active_branch) |
3632 | 3634 | { |
3633 | 3635 | getDbCompatibleMode(pset.db); |
@@ -5286,7 +5288,7 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet) |
5286 | 5288 | /* header line width in expanded mode */ |
5287 | 5289 | else if (strcmp(param, "xheader_width") == 0) |
5288 | 5290 | { |
5289 | | - if (! value) |
| 5291 | + if (!value) |
5290 | 5292 | ; |
5291 | 5293 | else if (pg_strcasecmp(value, "full") == 0) |
5292 | 5294 | popt->topt.expanded_header_width_type = PRINT_XHEADER_FULL; |
@@ -5838,15 +5840,16 @@ pset_value_string(const char *param, printQueryOpt *popt) |
5838 | 5840 | else if (strcmp(param, "xheader_width") == 0) |
5839 | 5841 | { |
5840 | 5842 | if (popt->topt.expanded_header_width_type == PRINT_XHEADER_FULL) |
5841 | | - return(pstrdup("full")); |
| 5843 | + return (pstrdup("full")); |
5842 | 5844 | else if (popt->topt.expanded_header_width_type == PRINT_XHEADER_COLUMN) |
5843 | | - return(pstrdup("column")); |
| 5845 | + return (pstrdup("column")); |
5844 | 5846 | else if (popt->topt.expanded_header_width_type == PRINT_XHEADER_PAGE) |
5845 | | - return(pstrdup("page")); |
| 5847 | + return (pstrdup("page")); |
5846 | 5848 | else |
5847 | 5849 | { |
5848 | 5850 | /* must be PRINT_XHEADER_EXACT_WIDTH */ |
5849 | | - char wbuff[32]; |
| 5851 | + char wbuff[32]; |
| 5852 | + |
5850 | 5853 | snprintf(wbuff, sizeof(wbuff), "%d", |
5851 | 5854 | popt->topt.expanded_header_exact_width); |
5852 | 5855 | return pstrdup(wbuff); |
|
0 commit comments