mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Allow ; in () in psql.
This commit is contained in:
@ -270,11 +270,10 @@ MainLoop(PsqlSettings *pset, FILE *source)
|
|||||||
free(line);
|
free(line);
|
||||||
line = new;
|
line = new;
|
||||||
continue; /* reparse the just substituted */
|
continue; /* reparse the just substituted */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* semicolon? then send query */
|
/* 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 */
|
/* delete the old query buffer from last time around */
|
||||||
if (slashCmdStatus == CMD_SEND)
|
if (slashCmdStatus == CMD_SEND)
|
||||||
|
Reference in New Issue
Block a user