mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Clean up temp files from \e.
This commit is contained in:
parent
c85a8e9df5
commit
354a39bc44
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright 2000 by PostgreSQL Global Development Group
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.26 2000/03/27 21:11:37 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.27 2000/04/11 17:35:50 momjian Exp $
|
||||
*/
|
||||
#include "postgres.h"
|
||||
#include "command.h"
|
||||
@ -1456,6 +1456,8 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf)
|
||||
fclose(stream);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* remove temp file */
|
||||
if (!filename_arg)
|
||||
{
|
||||
@ -1465,7 +1467,6 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf)
|
||||
error=true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return !error;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user