mirror of
https://github.com/postgres/postgres.git
synced 2025-05-11 05:41:32 +03:00
Fix for psql from Peter.
This commit is contained in:
parent
298845a6f0
commit
1ff0a475ee
@ -275,9 +275,6 @@ MainLoop(PsqlSettings *pset, FILE *source)
|
|||||||
/* semicolon? then send query */
|
/* semicolon? then send query */
|
||||||
else if (line[i] == ';' && !was_bslash && !paren_level)
|
else if (line[i] == ';' && !was_bslash && !paren_level)
|
||||||
{
|
{
|
||||||
/* delete the old query buffer from last time around */
|
|
||||||
if (slashCmdStatus == CMD_SEND)
|
|
||||||
|
|
||||||
line[i] = '\0';
|
line[i] = '\0';
|
||||||
/* is there anything else on the line? */
|
/* is there anything else on the line? */
|
||||||
if (line[query_start + strspn(line + query_start, " \t")] != '\0')
|
if (line[query_start + strspn(line + query_start, " \t")] != '\0')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user