File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 33 *
44 * Copyright (c) 2000-2008, PostgreSQL Global Development Group
55 *
6- * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.89 2008/04/04 18:00:25 momjian Exp $
6+ * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.90 2008/04/05 03:40:15 tgl Exp $
77 */
88#include "postgres_fe.h"
99#include "mainloop.h"
@@ -174,13 +174,14 @@ MainLoop(FILE *source)
174174 /* A request for help? Be friendly and give them some guidance */
175175 if (pset .cur_cmd_interactive && query_buf -> len == 0 &&
176176 pg_strncasecmp (line , "help" , 4 ) == 0 &&
177- (line [4 ] == '\0' || line [4 ] == ';' || isspace (line [4 ])))
177+ (line [4 ] == '\0' || line [4 ] == ';' || isspace (( unsigned char ) line [4 ])))
178178 {
179179 free (line );
180- puts ("You are using psql, the command-line interface to PostgreSQL." );
181- puts ("Enter SQL commands, or type \\? for a list of backslash options." );
182- puts ("Use \\h for SQL command help." );
183- puts ("Use \\q to quit." );
180+ puts (_ ("You are using psql, the command-line interface to PostgreSQL." ));
181+ puts (_ ("Enter SQL commands, or type \\? for a list of backslash options." ));
182+ puts (_ ("Use \\h for SQL command help." ));
183+ puts (_ ("Use \\q to quit." ));
184+ fflush (stdout );
184185 continue ;
185186 }
186187
You can’t perform that action at this time.
0 commit comments