mirror of
https://github.com/postgres/postgres.git
synced 2025-05-30 00:02:11 -04:00
Fix for \e on empty file.
This commit is contained in:
parent
9bcf350cc7
commit
0f62b3024e
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.108 1997/11/16 05:32:16 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/Attic/psql.c,v 1.109 1997/11/17 05:23:11 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -2099,7 +2099,7 @@ MainLoop(PsqlSettings *pset, char *query, FILE *source)
|
|||||||
* for next command
|
* for next command
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (line == NULL)
|
if (line == NULL || *line == '\0')
|
||||||
{ /* No more input. Time to quit, or \i done */
|
{ /* No more input. Time to quit, or \i done */
|
||||||
if (!pset->quiet)
|
if (!pset->quiet)
|
||||||
printf("EOF\n");/* Goes on prompt line */
|
printf("EOF\n");/* Goes on prompt line */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user