mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Allow ; in () in psql.
This commit is contained in:
@ -272,9 +272,8 @@ MainLoop(PsqlSettings *pset, FILE *source)
|
|||||||
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