|
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 |
|
@@ -294,7 +294,7 @@ HandleSlashCmds(PsqlScanState scan_state, |
294 | 294 | /* if there is a trailing \\, swallow it */ |
295 | 295 | if (db_mode == DB_PG) |
296 | 296 | psql_scan_slash_command_end(scan_state); |
297 | | - else if(db_mode == DB_ORACLE) |
| 297 | + else if (db_mode == DB_ORACLE) |
298 | 298 | ora_psql_scan_slash_command_end(scan_state); |
299 | 299 |
|
300 | 300 | free(cmd); |
@@ -1038,6 +1038,7 @@ exec_command_d(PsqlScanState scan_state, bool active_branch, const char *cmd) |
1038 | 1038 | show_system = strchr(cmd, 'S') ? true : false; |
1039 | 1039 |
|
1040 | 1040 | getDbCompatibleMode(pset.db); |
| 1041 | + |
1041 | 1042 | /* |
1042 | 1043 | * The 'x' option turns expanded mode on for this command only. This |
1043 | 1044 | * is allowed in all \d* commands, except \d by itself, since \dx is a |
@@ -3538,6 +3539,7 @@ static backslashResult |
3538 | 3539 | exec_command_parser(PsqlScanState scan_state, bool active_branch) |
3539 | 3540 | { |
3540 | 3541 | bool success = true; |
| 3542 | + |
3541 | 3543 | if (active_branch) |
3542 | 3544 | { |
3543 | 3545 | getDbCompatibleMode(pset.db); |
@@ -5191,7 +5193,7 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet) |
5191 | 5193 | /* header line width in expanded mode */ |
5192 | 5194 | else if (strcmp(param, "xheader_width") == 0) |
5193 | 5195 | { |
5194 | | - if (! value) |
| 5196 | + if (!value) |
5195 | 5197 | ; |
5196 | 5198 | else if (pg_strcasecmp(value, "full") == 0) |
5197 | 5199 | popt->topt.expanded_header_width_type = PRINT_XHEADER_FULL; |
@@ -5743,15 +5745,16 @@ pset_value_string(const char *param, printQueryOpt *popt) |
5743 | 5745 | else if (strcmp(param, "xheader_width") == 0) |
5744 | 5746 | { |
5745 | 5747 | if (popt->topt.expanded_header_width_type == PRINT_XHEADER_FULL) |
5746 | | - return(pstrdup("full")); |
| 5748 | + return (pstrdup("full")); |
5747 | 5749 | else if (popt->topt.expanded_header_width_type == PRINT_XHEADER_COLUMN) |
5748 | | - return(pstrdup("column")); |
| 5750 | + return (pstrdup("column")); |
5749 | 5751 | else if (popt->topt.expanded_header_width_type == PRINT_XHEADER_PAGE) |
5750 | | - return(pstrdup("page")); |
| 5752 | + return (pstrdup("page")); |
5751 | 5753 | else |
5752 | 5754 | { |
5753 | 5755 | /* must be PRINT_XHEADER_EXACT_WIDTH */ |
5754 | | - char wbuff[32]; |
| 5756 | + char wbuff[32]; |
| 5757 | + |
5755 | 5758 | snprintf(wbuff, sizeof(wbuff), "%d", |
5756 | 5759 | popt->topt.expanded_header_exact_width); |
5757 | 5760 | return pstrdup(wbuff); |
|
0 commit comments