forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit44f9f1f
committed
plperl: Correctly handle empty arrays in plperl_ref_from_pg_array.
plperl_ref_from_pg_array() didn't consider the case that postgrs arrayscan have 0 dimensions (when they're empty) and accessed the firstdimension without a check. Fix that by special casing the empty arraycase.Author: Alex HunsakerReported-By: Andres Freund / valgrind / buildfarm animal skinkDiscussion: 20160308063240.usnzg6bsbjrne667@alap3.anarazel.deBackpatch: 9.1-1 parentb73e816 commit44f9f1f
1 file changed
+20
-9
lines changedLines changed: 20 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1433 | 1433 |
| |
1434 | 1434 |
| |
1435 | 1435 |
| |
1436 |
| - | |
1437 |
| - | |
1438 |
| - | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
1439 | 1446 |
| |
1440 |
| - | |
1441 |
| - | |
1442 |
| - | |
1443 |
| - | |
1444 |
| - | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
1445 | 1452 |
| |
1446 |
| - | |
| 1453 | + | |
| 1454 | + | |
1447 | 1455 |
| |
1448 | 1456 |
| |
1449 | 1457 |
| |
| |||
1462 | 1470 |
| |
1463 | 1471 |
| |
1464 | 1472 |
| |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
1465 | 1476 |
| |
1466 | 1477 |
| |
1467 | 1478 |
| |
|
0 commit comments
Comments
(0)