|
3 | 3 | * |
4 | 4 | * Copyright (c) 2000-2006, PostgreSQL Global Development Group |
5 | 5 | * |
6 | | - * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.74 2006/03/21 13:38:12 momjian Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/mainloop.c,v 1.75 2006/06/04 04:35:55 momjian Exp $ |
7 | 7 | */ |
8 | 8 | #include"postgres_fe.h" |
9 | 9 | #include"mainloop.h" |
@@ -306,7 +306,7 @@ MainLoop(FILE *source) |
306 | 306 | if (first_query_scan&&pset.cur_cmd_interactive) |
307 | 307 | { |
308 | 308 | /* Sending a command (PSQL_CMD_SEND) zeros the length */ |
309 | | -if (scan_result==PSCAN_BACKSLASH&&query_buf->len!=0) |
| 309 | +if (scan_result==PSCAN_BACKSLASH&&history_buf->len!=0) |
310 | 310 | pg_write_history(line); |
311 | 311 | else |
312 | 312 | pg_append_history(line,history_buf); |
|