forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4b39aa3
committed
Re-implement psql's input scanning to use a flex-generated lexer, as per
recent discussion. The lexer is used for both SQL command text andbackslash commands. The purpose of this change is to make it easier totrack the behavior of the backend's SQL lexer --- essentially identicalflex rules are now used by psql. Also, this cleans up a lot of verysquirrelly code in mainloop.c and command.c. The flex code is somewhatbulkier than the removed code, but should be lots easier to maintain.1 parent737f1cd commit4b39aa3
File tree
8 files changed
+1804
-837
lines changed- src/bin/psql
8 files changed
+1804
-837
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
1 | 2 |
|
Lines changed: 14 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 |
| |
24 | 27 |
| |
25 | 28 |
| |
| |||
36 | 39 |
| |
37 | 40 |
| |
38 | 41 |
| |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
39 | 49 |
| |
40 | 50 |
| |
41 | 51 |
| |
| |||
47 | 57 |
| |
48 | 58 |
| |
49 | 59 |
| |
| 60 | + | |
50 | 61 |
| |
51 | 62 |
| |
52 | 63 |
| |
53 | 64 |
| |
54 |
| - | |
| 65 | + |
0 commit comments
Comments
(0)