forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaf00c04
committed
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 wasalmost> broken ;(Sergey E. Koposov1 parent3b7e2b1 commitaf00c04
4 files changed
+23
-11
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
753 | 753 |
| |
754 | 754 |
| |
755 | 755 |
| |
756 |
| - | |
| 756 | + | |
757 | 757 |
| |
758 | 758 |
| |
759 | 759 |
| |
|
Lines changed: 15 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
148 | 148 |
| |
149 | 149 |
| |
150 | 150 |
| |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
151 | 155 |
| |
152 | 156 |
| |
153 | 157 |
| |
| |||
295 | 299 |
| |
296 | 300 |
| |
297 | 301 |
| |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
298 | 308 |
| |
299 |
| - | |
| 309 | + | |
300 | 310 |
| |
301 | 311 |
| |
302 | 312 |
| |
303 | 313 |
| |
304 |
| - | |
| 314 | + | |
| 315 | + | |
305 | 316 |
| |
306 | 317 |
| |
307 | 318 |
| |
| |||
331 | 342 |
| |
332 | 343 |
| |
333 | 344 |
| |
334 |
| - | |
| 345 | + | |
335 | 346 |
| |
336 | 347 |
| |
337 | 348 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
| 40 | + | |
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
| 115 | + | |
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
| |||
321 | 321 |
| |
322 | 322 |
| |
323 | 323 |
| |
324 |
| - | |
| 324 | + | |
| 325 | + | |
325 | 326 |
| |
326 | 327 |
| |
327 | 328 |
| |
|
0 commit comments
Comments
(0)