From 169a5b76708b8f00f380130253491694ce0df8b0 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Tue, 16 Jul 1996 06:37:28 +0000 Subject: [PATCH] applied fixes for psql - \p produces traditional results - \r added submitted by: Bruce Momjian (root@candle.pha.pa.us) --- src/bin/psql/psql.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/psql/psql.c b/src/bin/psql/psql.c index d5dbfcea6f..76ca326d0f 100644 --- a/src/bin/psql/psql.c +++ b/src/bin/psql/psql.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.1.1.1 1996/07/09 06:22:15 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.2 1996/07/16 06:37:28 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -762,8 +762,13 @@ HandleSlashCmds(PGconn** db_ptr, if (query) { fputs(query, stdout); fputc('\n', stdout); + status = 1; } break; + case 'r': + query[0] = '\0'; + status = 1; + break; case 'q': /* \q is quit */ status = 2; break; -- 2.49.0