aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1999-12-11 01:03:36 +0000
committerBruce Momjian <bruce@momjian.us>1999-12-11 01:03:36 +0000
commit298845a6f012038a12fb62822157fc3e240410ca (patch)
tree37be6386c677e8858d1203402a93e734a468a4f7 /src
parente6ac08c39888ed7aa5a45299f47f7b3f9c818d40 (diff)
downloadpostgresql-298845a6f012038a12fb62822157fc3e240410ca.tar.gz
postgresql-298845a6f012038a12fb62822157fc3e240410ca.zip
Allow ; in () in psql.
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/mainloop.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bin/psql/mainloop.c b/src/bin/psql/mainloop.c
index f85247689b9..e6b85604982 100644
--- a/src/bin/psql/mainloop.c
+++ b/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)