Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita837851

Browse files
committed
Fix psql so \r is separate in the history, rather than at the end of
the query.
1 parentf6dc20e commita837851

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/psql/mainloop.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2006, PostgreSQL Global Development Group
55
*
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 $
77
*/
88
#include"postgres_fe.h"
99
#include"mainloop.h"
@@ -306,7 +306,7 @@ MainLoop(FILE *source)
306306
if (first_query_scan&&pset.cur_cmd_interactive)
307307
{
308308
/* 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)
310310
pg_write_history(line);
311311
else
312312
pg_append_history(line,history_buf);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp