Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 169a5b7

Browse files
committed
applied fixes for psql
- \p produces traditional results - \r added submitted by: Bruce Momjian (root@candle.pha.pa.us)
1 parent d7a1ce7 commit 169a5b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/bin/psql/psql.c

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.1.1.1 1996/07/09 06:22:15 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.2 1996/07/16 06:37:28 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -762,8 +762,13 @@ HandleSlashCmds(PGconn** db_ptr,
762762
if (query) {
763763
fputs(query, stdout);
764764
fputc('\n', stdout);
765+
status = 1;
765766
}
766767
break;
768+
case 'r':
769+
query[0] = '\0';
770+
status = 1;
771+
break;
767772
case 'q': /* \q is quit */
768773
status = 2;
769774
break;

0 commit comments

Comments
 (0)