projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea88824
)
Use saveHistory so we get a nice error message on failure.
author
Bruce Momjian
<bruce@momjian.us>
Fri, 10 Jun 2005 15:40:41 +0000
(15:40 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Fri, 10 Jun 2005 15:40:41 +0000
(15:40 +0000)
Andreas Seltenreich
src/bin/psql/input.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/input.c
b/src/bin/psql/input.c
index ee0180376b18babf57e4101bf3903d167123ec53..2da977612cd2059fec7490e6da3f81e7e50e01b1 100644
(file)
--- a/
src/bin/psql/input.c
+++ b/
src/bin/psql/input.c
@@
-3,7
+3,7
@@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.4
4 2005/06/10 15:34:26
momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.4
5 2005/06/10 15:40:41
momjian Exp $
*/
#include "postgres_fe.h"
@@
-245,7
+245,7
@@
finishInput(int exitstatus, void *arg)
if (hist_size >= 0)
stifle_history(hist_size);
-
write_h
istory(psql_history);
+
saveH
istory(psql_history);
free(psql_history);
psql_history = NULL;
}