1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

applied fixes for psql

- \p produces traditional results
	- \r added

submitted by: Bruce Momjian (root@candle.pha.pa.us)
This commit is contained in:
Marc G. Fournier
1996-07-16 06:37:28 +00:00
parent d7a1ce7af7
commit 169a5b7670

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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) { if (query) {
fputs(query, stdout); fputs(query, stdout);
fputc('\n', stdout); fputc('\n', stdout);
status = 1;
} }
break; break;
case 'r':
query[0] = '\0';
status = 1;
break;
case 'q': /* \q is quit */ case 'q': /* \q is quit */
status = 2; status = 2;
break; break;