- Notifications
You must be signed in to change notification settings - Fork5
Commit4609caf
committed
Correctly add exceptions to the plpy module for Python 3
The way the exception types where added to the module was wrong forPython 3. Exception classes were not actually available from plpy.Fix that by factoring out code that is responsible for defining newPython exceptions and make it work with Python 3. New regression testmakes sure the plpy module has the expected contents.Jan Urbanśki, slightly revised by me1 parentd3b372e commit4609caf
File tree
3 files changed
+54
-11
lines changed- src/pl/plpython
- expected
- sql
3 files changed
+54
-11
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
38 | 51 |
| |
39 | 52 |
| |
40 | 53 |
| |
|
Lines changed: 30 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3268 | 3268 |
| |
3269 | 3269 |
| |
3270 | 3270 |
| |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
| 3277 | + | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
| 3285 | + | |
| 3286 | + | |
| 3287 | + | |
| 3288 | + | |
3271 | 3289 |
| |
3272 | 3290 |
| |
3273 | 3291 |
| |
3274 | 3292 |
| |
3275 |
| - | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
3276 | 3302 |
| |
3277 | 3303 |
| |
3278 | 3304 |
| |
| |||
3363 | 3389 |
| |
3364 | 3390 |
| |
3365 | 3391 |
| |
3366 |
| - | |
3367 |
| - | |
| 3392 | + | |
3368 | 3393 |
| |
3369 | 3394 |
| |
3370 | 3395 |
| |
| |||
3376 | 3401 |
| |
3377 | 3402 |
| |
3378 | 3403 |
| |
| 3404 | + | |
3379 | 3405 |
| |
3380 | 3406 |
| |
| 3407 | + | |
3381 | 3408 |
| |
3382 |
| - | |
3383 | 3409 |
| |
3384 | 3410 |
| |
3385 | 3411 |
| |
3386 |
| - | |
3387 |
| - | |
3388 |
| - | |
3389 |
| - | |
3390 |
| - | |
3391 |
| - | |
3392 |
| - | |
3393 | 3412 |
| |
3394 | 3413 |
| |
3395 | 3414 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
29 | 40 |
| |
30 | 41 |
| |
31 | 42 |
| |
|
0 commit comments
Comments
(0)