Allow ; in () in psql.

REL7_0_PATCHES
Bruce Momjian 26 years ago
parent e6ac08c398
commit 298845a6f0
  1. 5
      src/bin/psql/mainloop.c

@ -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)

Loading…
Cancel
Save