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 f6dc20e commit a837851Copy full SHA for a837851
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.74 2006/03/21 13:38:12 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.75 2006/06/04 04:35:55 momjian Exp $
7
*/
8
#include "postgres_fe.h"
9
#include "mainloop.h"
@@ -306,7 +306,7 @@ MainLoop(FILE *source)
306
if (first_query_scan && pset.cur_cmd_interactive)
307
{
308
/* Sending a command (PSQL_CMD_SEND) zeros the length */
309
- if (scan_result == PSCAN_BACKSLASH && query_buf->len != 0)
+ if (scan_result == PSCAN_BACKSLASH && history_buf->len != 0)
310
pg_write_history(line);
311
else
312
pg_append_history(line, history_buf);
0 commit comments