Fix version warning bug in recently applied adjustments to psql startup.
authorBruce Momjian <bruce@momjian.us>
Sat, 16 Aug 2008 00:16:56 +0000 (00:16 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 16 Aug 2008 00:16:56 +0000 (00:16 +0000)
Gregory Stark

src/bin/psql/command.c

index 9e6923fea96dae1a19eb9af8f8cd59f0a8e735bb..291d449ac50897c0fc955bcd5c70e7d07a5e31ed 100644 (file)
@@ -1197,10 +1197,10 @@ do_connect(char *dbname, char *user, char *host, char *port)
         * Replace the old connection with the new one, and update
         * connection-dependent variables.
         */
-       connection_warnings();
        PQsetNoticeProcessor(n_conn, NoticeProcessor, NULL);
        pset.db = n_conn;
        SyncVariables();
+       connection_warnings(); /* Must be after SyncVariables */
 
        /* Tell the user about the new connection */
        if (!pset.quiet)