Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 02bbd95

Browse files
committedJul 22, 1996
Backed out the changes to monitor.c that seem to be affecting the
ability for createuser to actually create one...
1 parent 753631a commit 02bbd95

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed
 

‎src/bin/monitor/monitor.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.2 1996/07/18 05:48:34 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.3 1996/07/22 05:59:53 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -642,7 +642,6 @@ handle_execution(char *query)
642642
{
643643
PGresult *result;
644644
int retval = 0;
645-
PQprintOpt opt;
646645

647646
result = PQexec(conn, query);
648647

@@ -658,18 +657,11 @@ handle_execution(char *query)
658657
break;
659658
case PGRES_TUPLES_OK:
660659
/* PQprintTuples(result,stdout,PrintAttNames,TerseOutput,COLWIDTH); */
661-
/* if (TerseOutput)
660+
if (TerseOutput)
662661
PQdisplayTuples(result,stdout,1,"",PrintAttNames,TerseOutput);
663662
else
664-
PQdisplayTuples(result,stdout,1,"|",PrintAttNames,TerseOutput); */
665-
memset(&opt, 0, sizeof opt);
666-
opt.header = opt.align = opt.standard = 1;
667-
if (TerseOutput)
668-
opt.fieldSep = "";
669-
else
670-
opt.fieldSep = "|";
671-
PQprint(stdout, result, &opt);
672-
break;
663+
PQdisplayTuples(result,stdout,1,"|",PrintAttNames,TerseOutput);
664+
break;
673665
case PGRES_COPY_OUT:
674666
handle_copy_out(result);
675667
break;

0 commit comments

Comments
 (0)
Failed to load comments.