forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3899caf
committed
Fix broken definition for function name in pgbench's exprscan.l.
As written, this would accept e.g. 123e9 as a function name. Asidefrom being mildly astonishing, that would come back to haunt us ifwe ever try to add float constants to the expression syntax. Insistthat function names start with letters (or at least non-digits).In passing reset yyline as well as yycol when starting a new expression.This variable is useless since it's used nowhere, but if we're goingto have it we should have it act sanely.1 parentfd45d16 commit3899caf
1 file changed
+8
-5
lines changedLines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 |
| |
39 | 42 |
| |
40 | 43 |
| |
| |||
48 | 51 |
| |
49 | 52 |
| |
50 | 53 |
| |
51 |
| - | |
| 54 | + | |
52 | 55 |
| |
53 | 56 |
| |
54 | 57 |
| |
55 | 58 |
| |
56 |
| - | |
| 59 | + | |
57 | 60 |
| |
58 | 61 |
| |
59 | 62 |
| |
60 | 63 |
| |
61 |
| - | |
| 64 | + | |
62 | 65 |
| |
63 | 66 |
| |
64 | 67 |
| |
| |||
107 | 110 |
| |
108 | 111 |
| |
109 | 112 |
| |
110 |
| - | |
111 |
| - | |
| 113 | + | |
| 114 | + | |
112 | 115 |
| |
113 | 116 |
| |
114 | 117 |
| |
|
0 commit comments
Comments
(0)