Skip to content

Commit 298845a

Browse files
committed
Allow ; in () in psql.
1 parent e6ac08c commit 298845a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bin/psql/mainloop.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,10 @@ MainLoop(PsqlSettings *pset, FILE *source)
270270
free(line);
271271
line = new;
272272
continue; /* reparse the just substituted */
273-
}
274-
273+
}
275274

276275
/* semicolon? then send query */
277-
else if (line[i] == ';' && !was_bslash)
276+
else if (line[i] == ';' && !was_bslash && !paren_level)
278277
{
279278
/* delete the old query buffer from last time around */
280279
if (slashCmdStatus == CMD_SEND)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy