From 9951474c71b8d5145a52e513febc15ad3bf16e7d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 4 Oct 2003 01:04:46 +0000 Subject: [PATCH] Change transaction status indicator in prompt from %T to %x. --- doc/src/sgml/ref/psql-ref.sgml | 4 ++-- src/bin/psql/prompt.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 784cc06a41..af8c2c5fc3 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1,5 +1,5 @@ @@ -2254,7 +2254,7 @@ testdb=> \set content '\'' `sed -e "s/'/\\\\\\'/g" < my_file.txt` '\' - %T + %x Transaction status: an empty string when not in a transaction diff --git a/src/bin/psql/prompt.c b/src/bin/psql/prompt.c index fbc0f44381..18f4b1aac4 100644 --- a/src/bin/psql/prompt.c +++ b/src/bin/psql/prompt.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2003, PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.29 2003/09/03 22:05:09 petere Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.30 2003/10/04 01:04:46 petere Exp $ */ #include "postgres_fe.h" #include "prompt.h" @@ -44,7 +44,7 @@ * or a ! if session is not connected to a database; * in prompt2 -, *, ', or "; * in prompt3 nothing - * %T - transaction status: empty, *, !, ? (unknown or no connection) + * %x - transaction status: empty, *, !, ? (unknown or no connection) * %? - the error code of the last query (not yet implemented) * %% - a percent sign * @@ -208,7 +208,7 @@ get_prompt(promptStatus_t status) } break; - case 'T': + case 'x': if (!pset.db) buf[0] = '?'; else -- 2.40.0