OSDN Git Service

Fix psql history handling:
authorBruce Momjian <bruce@momjian.us>
Tue, 21 Mar 2006 13:38:12 +0000 (13:38 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 21 Mar 2006 13:38:12 +0000 (13:38 +0000)
commitaf00c04c42a1f9da25946f001d60941e43801285
tree9ecdb1effb92bd7f2bb996788ff1a992fb699dc9
parent3b7e2b140e48ba798b29835e4c86175133e27793
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
src/bin/psql/command.c
src/bin/psql/input.c
src/bin/psql/input.h
src/bin/psql/mainloop.c