Fix for psql from Peter.

This commit is contained in:
Bruce Momjian 1999-12-11 21:35:49 +00:00
parent 298845a6f0
commit 1ff0a475ee
1 changed files with 0 additions and 3 deletions

View File

@ -275,9 +275,6 @@ MainLoop(PsqlSettings *pset, FILE *source)
/* semicolon? then send query */ /* semicolon? then send query */
else if (line[i] == ';' && !was_bslash && !paren_level) else if (line[i] == ';' && !was_bslash && !paren_level)
{ {
/* delete the old query buffer from last time around */
if (slashCmdStatus == CMD_SEND)
line[i] = '\0'; line[i] = '\0';
/* is there anything else on the line? */ /* is there anything else on the line? */
if (line[query_start + strspn(line + query_start, " \t")] != '\0') if (line[query_start + strspn(line + query_start, " \t")] != '\0')