- Notifications
You must be signed in to change notification settings - Fork5
Commitff645bf
committed
Revert patch to coerce 'unknown' type parameters in the backend. As Tom
pointed out, it would need a 2nd pass after the whole query is processed tocorrectly check that an unknown Param is coerced to the same target typeeverywhere. Adding the 2nd pass would add a lot more code, which doesn'tseem worth the risk given that there isn't much of a use case for passingunknown Params in the first place. The code would work without that check,but it might be confusing and the behavior would be different from thevarparams case.Instead, just coerce all unknown params in a PL/pgSQL USING clause to text.That's simple, and is usually what users expect.Revert the patch in CVS HEAD and master, and backpatch the new solution to8.4. Unlike the previous solution, this applies easily to 8.4 too.1 parentbc7cb8f commitff645bf
2 files changed
+18
-86
lines changedLines changed: 2 additions & 84 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
40 | 39 |
| |
41 | 40 |
| |
42 | 41 |
| |
| |||
56 | 55 |
| |
57 | 56 |
| |
58 | 57 |
| |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 | 58 |
| |
63 | 59 |
| |
64 | 60 |
| |
| |||
73 | 69 |
| |
74 | 70 |
| |
75 | 71 |
| |
76 |
| - | |
77 | 72 |
| |
78 | 73 |
| |
79 |
| - | |
| 74 | + | |
80 | 75 |
| |
81 | 76 |
| |
82 | 77 |
| |
| |||
175 | 170 |
| |
176 | 171 |
| |
177 | 172 |
| |
178 |
| - | |
179 |
| - | |
180 |
| - | |
181 |
| - | |
182 |
| - | |
183 |
| - | |
184 |
| - | |
185 |
| - | |
186 |
| - | |
187 |
| - | |
188 |
| - | |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 |
| - | |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 |
| - | |
221 |
| - | |
222 |
| - | |
223 |
| - | |
224 |
| - | |
225 |
| - | |
226 |
| - | |
227 |
| - | |
228 |
| - | |
229 |
| - | |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
235 |
| - | |
236 |
| - | |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 |
| - | |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
248 |
| - | |
249 |
| - | |
250 |
| - | |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 |
| - | |
255 | 173 |
| |
256 | 174 |
| |
257 | 175 |
| |
|
Lines changed: 16 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
5521 | 5521 |
| |
5522 | 5522 |
| |
5523 | 5523 |
| |
| 5524 | + | |
| 5525 | + | |
| 5526 | + | |
| 5527 | + | |
| 5528 | + | |
| 5529 | + | |
| 5530 | + | |
| 5531 | + | |
| 5532 | + | |
| 5533 | + | |
| 5534 | + | |
| 5535 | + | |
| 5536 | + | |
| 5537 | + | |
5524 | 5538 |
| |
5525 |
| - | |
| 5539 | + | |
5526 | 5540 |
| |
5527 | 5541 |
| |
5528 | 5542 |
| |
|
0 commit comments
Comments
(0)