- Notifications
You must be signed in to change notification settings - Fork5
Commitadd932e
committed
I'm continuing to work on cleaning up code in psql. As things appear
now, my changes seem to work. Some possible minor bugs got squishedon the way but I can't be sure without more feedback from people whoreally put the code to the test.The new patch mostly simplifies variable handling and reduces codeduplication. Changes in the command parser eliminate some redundantvariables (boolean state + depth counter), replaces some"else if" constructs with switches, and so on. It is meant to beapplied together with my previous patch, although I hope they don'tconflict; I went back to the CVS version for this one.One more thing I thought should perhaps be changed: an IGNOREEOFvalue of n will ignore only n-1 EOFs. I didn't want to touch thisfor fear of breaking existing applications, but it does seem a tadillogical.Jeroen T. Vermeulen1 parent1b3d4ce commitadd932e
File tree
10 files changed
+233
-201
lines changed- src/bin/psql
10 files changed
+233
-201
lines changedLines changed: 5 additions & 21 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 |
| |
| |||
669 | 669 |
| |
670 | 670 |
| |
671 | 671 |
| |
672 |
| - | |
673 |
| - | |
674 |
| - | |
675 |
| - | |
676 |
| - | |
677 |
| - | |
678 |
| - | |
679 |
| - | |
680 |
| - | |
| 672 | + | |
681 | 673 |
| |
682 | 674 |
| |
683 | 675 |
| |
| |||
1073 | 1065 |
| |
1074 | 1066 |
| |
1075 | 1067 |
| |
1076 |
| - | |
1077 |
| - | |
1078 |
| - | |
| 1068 | + | |
1079 | 1069 |
| |
1080 | 1070 |
| |
1081 | 1071 |
| |
| |||
1287 | 1277 |
| |
1288 | 1278 |
| |
1289 | 1279 |
| |
1290 |
| - | |
1291 |
| - | |
1292 |
| - | |
1293 |
| - | |
1294 |
| - | |
1295 |
| - | |
1296 |
| - | |
| 1280 | + | |
1297 | 1281 |
| |
1298 |
| - | |
| 1282 | + | |
1299 | 1283 |
| |
1300 | 1284 |
| |
1301 | 1285 |
| |
|
Lines changed: 23 additions & 16 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 |
| |
| |||
368 | 368 |
| |
369 | 369 |
| |
370 | 370 |
| |
371 |
| - | |
| 371 | + | |
372 | 372 |
| |
373 | 373 |
| |
374 | 374 |
| |
| |||
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
380 |
| - | |
381 |
| - | |
| 380 | + | |
| 381 | + | |
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
385 | 385 |
| |
386 | 386 |
| |
387 |
| - | |
388 | 387 |
| |
389 |
| - | |
| 388 | + | |
390 | 389 |
| |
| 390 | + | |
391 | 391 |
| |
392 | 392 |
| |
393 | 393 |
| |
| |||
579 | 579 |
| |
580 | 580 |
| |
581 | 581 |
| |
582 |
| - | |
| 582 | + | |
583 | 583 |
| |
584 | 584 |
| |
585 |
| - | |
| 585 | + | |
586 | 586 |
| |
587 | 587 |
| |
588 |
| - | |
| 588 | + | |
589 | 589 |
| |
590 | 590 |
| |
591 | 591 |
| |
| |||
596 | 596 |
| |
597 | 597 |
| |
598 | 598 |
| |
599 |
| - | |
600 |
| - | |
601 |
| - | |
602 |
| - | |
603 |
| - | |
604 |
| - | |
605 |
| - | |
606 | 599 |
| |
| 600 | + | |
| 601 | + | |
607 | 602 |
| |
608 | 603 |
| |
609 | 604 |
| |
| |||
619 | 614 |
| |
620 | 615 |
| |
621 | 616 |
| |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + |
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
| |||
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
45 | 51 |
| |
46 | 52 |
| |
47 | 53 |
| |
|
Lines changed: 6 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 |
| |
| |||
233 | 233 |
| |
234 | 234 |
| |
235 | 235 |
| |
236 |
| - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
237 | 241 |
| |
238 |
| - | |
239 |
| - | |
240 | 242 |
| |
241 | 243 |
| |
242 | 244 |
| |
|
Lines changed: 18 additions & 18 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 |
| |
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 | 43 |
| |
45 |
| - | |
| 44 | + | |
46 | 45 |
| |
47 | 46 |
| |
48 |
| - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 |
| |
50 |
| - | |
51 |
| - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 |
| |
53 | 58 |
| |
54 | 59 |
| |
| |||
87 | 92 |
| |
88 | 93 |
| |
89 | 94 |
| |
90 |
| - | |
91 |
| - | |
| 95 | + | |
92 | 96 |
| |
93 |
| - | |
94 |
| - | |
| 97 | + | |
95 | 98 |
| |
96 | 99 |
| |
97 | 100 |
| |
| |||
154 | 157 |
| |
155 | 158 |
| |
156 | 159 |
| |
157 |
| - | |
158 |
| - | |
| 160 | + | |
159 | 161 |
| |
160 |
| - | |
161 |
| - | |
| 162 | + | |
162 | 163 |
| |
163 | 164 |
| |
164 | 165 |
| |
| |||
271 | 272 |
| |
272 | 273 |
| |
273 | 274 |
| |
274 |
| - | |
275 |
| - | |
276 | 275 |
| |
277 |
| - | |
278 |
| - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
279 | 279 |
| |
280 | 280 |
| |
281 | 281 |
| |
|
0 commit comments
Comments
(0)