diff options
| author | Bruce Momjian | 2006-03-21 13:38:12 +0000 |
|---|---|---|
| committer | Bruce Momjian | 2006-03-21 13:38:12 +0000 |
| commit | af00c04c42a1f9da25946f001d60941e43801285 (patch) | |
| tree | 9ecdb1effb92bd7f2bb996788ff1a992fb699dc9 /src/bin/psql/input.h | |
| parent | 3b7e2b140e48ba798b29835e4c86175133e27793 (diff) | |
Fix psql history handling:
> 1) Fix the problems with the \s command.
> When the saveHistory is executed by the \s command we must not do the
> conversion \n -> \x01 (per
> http://archives.postgresql.org/pgsql-hackers/2006-03/msg00317.php )
>
> 2) Fix the handling of Ctrl+C
>
> Now when you do
> wsdb=# select 'your long query here '
> wsdb-#
> and press afterwards the CtrlC the line "select 'your long query here
'"
> will be in the history
>
> (partly per
> http://archives.postgresql.org/pgsql-hackers/2006-03/msg00297.php )
>
> 3) Fix the handling of commands with not closed brackets, quotes,
double
> quotes. (now those commands are not splitted in parts...)
>
> 4) Fix the behaviour when SINGLELINE mode is used. (before it was
almost
> broken ;(
Sergey E. Koposov
Diffstat (limited to 'src/bin/psql/input.h')
| -rw-r--r-- | src/bin/psql/input.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/input.h b/src/bin/psql/input.h index 3b85d416705..4fbc86079b4 100644 --- a/src/bin/psql/input.h +++ b/src/bin/psql/input.h @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2006, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/input.h,v 1.26 2006/03/06 04:45:21 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/input.h,v 1.27 2006/03/21 13:38:12 momjian Exp $ */ #ifndef INPUT_H #define INPUT_H @@ -37,7 +37,7 @@ char *gets_interactive(const char *prompt); char *gets_fromFile(FILE *source); void initializeInput(int flags); -bool saveHistory(char *fname); +bool saveHistory(char *fname, bool encodeFlag); void pg_append_history(char *s, PQExpBuffer history_buf); void pg_clear_history(PQExpBuffer history_buf); |
