8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c35169 commit ca9d503Copy full SHA for ca9d503
src/bin/psql/mainloop.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
5
6
- * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.77 2006/06/05 14:47:38 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.78 2006/06/07 13:18:37 momjian Exp $
7
*/
8
#include "postgres_fe.h"
9
#include "mainloop.h"
@@ -309,7 +309,7 @@ MainLoop(FILE *source)
309
if (!line_saved_in_history && pset.cur_cmd_interactive)
310
{
311
/* Sending a command (PSQL_CMD_SEND) zeros the length */
312
- if (scan_result == PSCAN_BACKSLASH && history_buf->len != 0)
+ if (scan_result == PSCAN_BACKSLASH)
313
pg_write_history(line);
314
else
315
pg_append_history(line, history_buf);
0 commit comments