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

Commit9951474

Browse files
committed
Change transaction status indicator in prompt from %T to %x.
1 parentbeb9351 commit9951474

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎doc/src/sgml/ref/psql-ref.sgml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.97 2003/09/12 02:40:09 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.98 2003/10/04 01:04:46 petere Exp $
33
PostgreSQL documentation
44
-->
55

@@ -2254,7 +2254,7 @@ testdb=> <userinput>\set content '\'' `sed -e "s/'/\\\\\\'/g" < my_file.txt` '\'
22542254
</varlistentry>
22552255

22562256
<varlistentry>
2257-
<term><literal>%T</literal></term>
2257+
<term><literal>%x</literal></term>
22582258
<listitem>
22592259
<para>
22602260
Transaction status: an empty string when not in a transaction

‎src/bin/psql/prompt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.29 2003/09/03 22:05:09 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.30 2003/10/04 01:04:46 petere Exp $
77
*/
88
#include"postgres_fe.h"
99
#include"prompt.h"
@@ -44,7 +44,7 @@
4444
*or a ! if session is not connected to a database;
4545
*in prompt2 -, *, ', or ";
4646
*in prompt3 nothing
47-
* %T - transaction status: empty, *, !, ? (unknown or no connection)
47+
* %x - transaction status: empty, *, !, ? (unknown or no connection)
4848
* %? - the error code of the last query (not yet implemented)
4949
* %% - a percent sign
5050
*
@@ -208,7 +208,7 @@ get_prompt(promptStatus_t status)
208208
}
209209
break;
210210

211-
case'T':
211+
case'x':
212212
if (!pset.db)
213213
buf[0]='?';
214214
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp