1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-18 13:44:19 +03:00

Fix fat fingering in 22cb6d28950

Per Rainier Vilela
This commit is contained in:
Andrew Dunstan 2025-04-10 19:05:54 -04:00
parent 928394b664
commit 39729ec01d

View File

@ -902,12 +902,12 @@ read_one_statement(StringInfo inBuf, FILE *pfile)
break;
}
destroyStringInfo(&q);
if (c == '\n')
appendStringInfoChar(inBuf, (char) '\n');
}
destroyStringInfo(&q);
/* No input before EOF signal means time to quit. */
if (c == EOF && inBuf->len == 0)
return EOF;