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

Commite768c41

Browse files
committed
I found that when changing databases from within psql the prompt went sort of
strange.bash$ psql disksWelcome to the POSTGRESQL interactive sql monitor: Please read the file COPYRIGHT for copyright terms of POSTGRESQL type \? for help on slash commands type \q to quit type \g or terminate with semicolon to execute query You are currently connected to the database: disksdisks=> \c postgresclosing connection to database: disksconnecting to new database: postgrespostgres== \c disksclosing connection to database: postgresconnecting to new database: disksdisks== \qbash$Note the => changes to == after a connect and stays that way on subsequentdatabase changes.Submitted by: Keith Parks <emkxp01@mtcc.demon.co.uk>
1 parent502a653 commite768c41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/psql/psql.c

Lines changed: 2 additions & 2 deletions
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.37.2.2 1996/12/14 08:19:40 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.37.2.3 1996/12/22 03:26:52 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -791,7 +791,7 @@ do_connect(const char *new_dbname, PsqlSettings * settings)
791791
PQfinish(olddb);
792792
free(settings->prompt);
793793
settings->prompt=malloc(strlen(PQdb(settings->db))+10);
794-
sprintf(settings->prompt,"%s%s",PQdb(settings->db),PROMPT);
794+
sprintf(settings->prompt,"%s%s",PQdb(settings->db),PROMPT);
795795
}
796796
}
797797
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp