diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-07-22 05:59:53 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-07-22 05:59:53 +0000 |
commit | 02bbd95a4153151e66e21475ed8ed994272f0103 (patch) | |
tree | 2b8a9e46df724c22b13f0d3661cabcf92812cca6 | |
parent | 753631ac17cd2fcf7006e104d1eac81cee624e36 (diff) | |
download | postgresql-02bbd95a4153151e66e21475ed8ed994272f0103.tar.gz postgresql-02bbd95a4153151e66e21475ed8ed994272f0103.zip |
Backed out the changes to monitor.c that seem to be affecting the
ability for createuser to actually create one...
-rw-r--r-- | src/bin/monitor/monitor.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/bin/monitor/monitor.c b/src/bin/monitor/monitor.c index ecaf205175d..28a8cca67b1 100644 --- a/src/bin/monitor/monitor.c +++ b/src/bin/monitor/monitor.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.2 1996/07/18 05:48:34 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/bin/monitor/Attic/monitor.c,v 1.3 1996/07/22 05:59:53 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -642,7 +642,6 @@ handle_execution(char *query) { PGresult *result; int retval = 0; - PQprintOpt opt; result = PQexec(conn, query); @@ -658,18 +657,11 @@ handle_execution(char *query) break; case PGRES_TUPLES_OK: /* PQprintTuples(result,stdout,PrintAttNames,TerseOutput,COLWIDTH); */ -/* if (TerseOutput) + if (TerseOutput) PQdisplayTuples(result,stdout,1,"",PrintAttNames,TerseOutput); else - PQdisplayTuples(result,stdout,1,"|",PrintAttNames,TerseOutput); */ - memset(&opt, 0, sizeof opt); - opt.header = opt.align = opt.standard = 1; - if (TerseOutput) - opt.fieldSep = ""; - else - opt.fieldSep = "|"; - PQprint(stdout, result, &opt); - break; + PQdisplayTuples(result,stdout,1,"|",PrintAttNames,TerseOutput); + break; case PGRES_COPY_OUT: handle_copy_out(result); break; |