forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit49b60a4
committed
Fix minor thinko in convertToJsonb().
The amount of space to reserve for the value's varlena header isVARHDRSZ, not sizeof(VARHDRSZ). The latter coding accidentallyfailed to fail because of the way the VARHDRSZ macro is currentlydefined; but if we ever change it to return size_t (as one mightreasonably expect it to do), convertToJsonb() would have failed.Spotted by Mark Dilger.1 parenteadd80c commit49b60a4
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1377 | 1377 |
| |
1378 | 1378 |
| |
1379 | 1379 |
| |
1380 |
| - | |
| 1380 | + | |
1381 | 1381 |
| |
1382 | 1382 |
| |
1383 | 1383 |
| |
|
0 commit comments
Comments
(0)