- Notifications
You must be signed in to change notification settings - Fork28
Commit9bfb1f2
committed
Minor code review for parse_phrase_operator().
Fix its header comment, which described the old behavior of the <N>phrase distance operator; we missed updating that in commit028350f.Also, reset errno before strtol() call, to defend against the possibilitythat it was already ERANGE at entry. (The lack of complaints says thatit generally isn't, but this is at least a latent bug.) Very minorstylistic improvements as well.Victor Drobny noted the obsolete comment, I noted the errno issue.Back-patch to 9.6 where this code was added, just in case the errnoissue is a live bug in some cases.Discussion:https://postgr.es/m/2b5382fdff9b1f79d5eb2c99c4d2cbe2@postgrespro.ru1 parent4947fce commit9bfb1f2
1 file changed
+5
-5
lines changedLines changed: 5 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
113 | 113 |
| |
114 | 114 |
| |
115 | 115 |
| |
116 |
| - | |
| 116 | + | |
117 | 117 |
| |
118 | 118 |
| |
119 | 119 |
| |
| |||
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
132 |
| - | |
133 | 132 |
| |
134 | 133 |
| |
135 |
| - | |
| 134 | + | |
136 | 135 |
| |
137 | 136 |
| |
138 | 137 |
| |
| |||
151 | 150 |
| |
152 | 151 |
| |
153 | 152 |
| |
154 |
| - | |
| 153 | + | |
155 | 154 |
| |
156 | 155 |
| |
157 | 156 |
| |
158 | 157 |
| |
159 | 158 |
| |
| 159 | + | |
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
163 |
| - | |
| 163 | + | |
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
|
0 commit comments
Comments
(0)