forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite45c5be
committed
Fix thinko in JsObjectSize() macro.
The macro gave the wrong answers for a JsObject with is_json == 0:it would return 1 if jsonb_cont == NULL, or if that wasn't NULL,it would return 1 for any non-zero size.We could fix that, but the only use of this macro at present is in theJsObjectIsEmpty() macro, so it seems simpler and clearer to get rid ofJsObjectSize() and put corrected logic into JsObjectIsEmpty().Thinko in commitcf35346, so no need for back-patch.Nikita GlukhovDiscussion:https://postgr.es/m/fbd1d566-bba0-a3de-d6d0-d3b1d7c24ff2@postgrespro.ru1 parentf3db7f1 commite45c5be
1 file changed
+6
-6
lines changedLines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
311 |
| - | |
| 311 | + | |
312 | 312 |
| |
313 |
| - | |
314 |
| - | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
315 | 316 |
| |
316 |
| - | |
317 |
| - | |
318 |
| - | |
| 317 | + | |
| 318 | + | |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
|
0 commit comments
Comments
(0)