|
|
|
@ -3,7 +3,7 @@ |
|
|
|
|
* |
|
|
|
|
* Copyright (c) 2000-2006, PostgreSQL Global Development Group |
|
|
|
|
* |
|
|
|
|
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.175 2006/12/16 00:38:43 adunstan Exp $ |
|
|
|
|
* $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.176 2006/12/28 00:29:13 tgl Exp $ |
|
|
|
|
*/ |
|
|
|
|
#include "postgres_fe.h" |
|
|
|
|
#include "command.h" |
|
|
|
@ -60,8 +60,8 @@ static bool do_shell(const char *command); |
|
|
|
|
/*----------
|
|
|
|
|
* HandleSlashCmds: |
|
|
|
|
* |
|
|
|
|
* Handles all the different commands that start with '\', |
|
|
|
|
* ordinarily called by MainLoop(). |
|
|
|
|
* Handles all the different commands that start with '\'. |
|
|
|
|
* Ordinarily called by MainLoop(). |
|
|
|
|
* |
|
|
|
|
* scan_state is a lexer working state that is set to continue scanning |
|
|
|
|
* just after the '\'. The lexer is advanced past the command and all |
|
|
|
@ -148,6 +148,9 @@ HandleSlashCmds(PsqlScanState scan_state, |
|
|
|
|
|
|
|
|
|
free(cmd); |
|
|
|
|
|
|
|
|
|
/* some commands write to queryFout, so make sure output is sent */ |
|
|
|
|
fflush(pset.queryFout); |
|
|
|
|
|
|
|
|
|
return status; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|