aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2001-05-06 21:15:51 +0000
committerPeter Eisentraut <peter_e@gmx.net>2001-05-06 21:15:51 +0000
commit9583aea9d09f6b3839ede8e57f990262b24e6979 (patch)
treed0d3c5e2086d264d2acf62482dd51120372d1d6d /src
parent7038554c4ef2149ec08d4fdaff04743d5153873b (diff)
downloadpostgresql-9583aea9d09f6b3839ede8e57f990262b24e6979.tar.gz
postgresql-9583aea9d09f6b3839ede8e57f990262b24e6979.zip
Fix collateral damage from previous (rev 1.49) patch.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index 1b23c158980..eb4a2e406ec 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.49 2001/04/18 20:53:08 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.50 2001/05/06 21:15:51 petere Exp $
*/
#include "postgres_fe.h"
#include "command.h"
@@ -141,6 +141,9 @@ HandleSlashCmds(const char *line,
status = exec_command(new_cmd, line + 1, &continue_parse, query_buf);
+ /* continue_parse must be relative to my_line for calculation below */
+ continue_parse += my_line - line;
+
#if 0 /* turned out to be too annoying */
if (status != CMD_UNKNOWN && isalpha((unsigned char) new_cmd[0]))
psql_error("Warning: this syntax is deprecated\n");