Allow ; in () in psql.

This commit is contained in:
Bruce Momjian 1999-12-11 01:03:36 +00:00
parent e6ac08c398
commit 298845a6f0
1 changed files with 2 additions and 3 deletions

View File

@ -270,11 +270,10 @@ MainLoop(PsqlSettings *pset, FILE *source)
free(line);
line = new;
continue; /* reparse the just substituted */
}
}
/* semicolon? then send query */
else if (line[i] == ';' && !was_bslash)
else if (line[i] == ';' && !was_bslash && !paren_level)
{
/* delete the old query buffer from last time around */
if (slashCmdStatus == CMD_SEND)