- Notifications
You must be signed in to change notification settings - Fork5
Commit8207c6b
committed
Fix freshly-introduced PL/Python portability bug.
It turns out that those PyErr_Clear() calls I removed from plpy_elog.cin7e3bb08 et al were not quite as random as they appeared: theymask a Python 2.3.x bug. (Specifically, it turns out that PyType_Ready()can fail if the error indicator is set on entry, and PLy_traceback's fetchof frame.f_code may be the first operation in a session that requires the"frame" type to be readied. Ick.) Put back the clear call, but in a morecentralized place closer to what it's protecting, and this time with acomment warning what it's really for.Per buildfarm member prairiedog. Although prairiedog was only failingon HEAD, it seems clearly possible for this to occur in older branchesas well, so back-patch to 9.2 the same as the previous patch.1 parentec91ee8 commit8207c6b
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
229 | 235 |
| |
230 | 236 |
| |
231 | 237 |
| |
|
0 commit comments
Comments
(0)