Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9583aea

Browse files
committed
Fix collateral damage from previous (rev 1.49) patch.
1 parent 7038554 commit 9583aea

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/bin/psql/command.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.49 2001/04/18 20:53:08 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.50 2001/05/06 21:15:51 petere Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "command.h"
@@ -141,6 +141,9 @@ HandleSlashCmds(const char *line,
141141

142142
status = exec_command(new_cmd, line + 1, &continue_parse, query_buf);
143143

144+
/* continue_parse must be relative to my_line for calculation below */
145+
continue_parse += my_line - line;
146+
144147
#if 0 /* turned out to be too annoying */
145148
if (status != CMD_UNKNOWN && isalpha((unsigned char) new_cmd[0]))
146149
psql_error("Warning: this syntax is deprecated\n");

0 commit comments

Comments
 (0)