|
3 | 3 | *
|
4 | 4 | * Copyright (c) 2000-2008, PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.192 2008/07/01 00:08:18 momjian Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.193 2008/08/16 00:16:56 momjian Exp $ |
7 | 7 | */
|
8 | 8 | #include"postgres_fe.h"
|
9 | 9 | #include"command.h"
|
@@ -1197,10 +1197,10 @@ do_connect(char *dbname, char *user, char *host, char *port)
|
1197 | 1197 | * Replace the old connection with the new one, and update
|
1198 | 1198 | * connection-dependent variables.
|
1199 | 1199 | */
|
1200 |
| -connection_warnings(); |
1201 | 1200 | PQsetNoticeProcessor(n_conn,NoticeProcessor,NULL);
|
1202 | 1201 | pset.db=n_conn;
|
1203 | 1202 | SyncVariables();
|
| 1203 | +connection_warnings();/* Must be after SyncVariables */ |
1204 | 1204 |
|
1205 | 1205 | /* Tell the user about the new connection */
|
1206 | 1206 | if (!pset.quiet)
|
|