Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit169a5b7

Browse files
committed
applied fixes for psql
- \p produces traditional results- \r addedsubmitted by: Bruce Momjian (root@candle.pha.pa.us)
1 parentd7a1ce7 commit169a5b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎src/bin/psql/psql.c

Lines changed: 6 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp