forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf7c6246
committed
Introduce convenience macros to hide JsonbContainer header accesses better.
This improves readability a bit and may make future improvements easier.In passing, make sure that the JB_ROOT_IS_XXX macros deliver boolean (0/1)results; the previous coding was a bug hazard, though no actual bugs areknown.Nikita Glukhov, extended a bit by meDiscussion:https://postgr.es/m/9e21a39c-c1d7-b9b5-44a0-c5345a5029f6@postgrespro.ru1 parent049ac80 commitf7c6246
File tree
3 files changed
+20
-14
lines changed- src
- backend/utils/adt
- include/utils
3 files changed
+20
-14
lines changedLines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
328 | 328 |
| |
329 | 329 |
| |
330 | 330 |
| |
331 |
| - | |
| 331 | + | |
332 | 332 |
| |
333 | 333 |
| |
334 | 334 |
| |
| |||
339 | 339 |
| |
340 | 340 |
| |
341 | 341 |
| |
342 |
| - | |
| 342 | + | |
343 | 343 |
| |
344 | 344 |
| |
345 | 345 |
| |
| |||
358 | 358 |
| |
359 | 359 |
| |
360 | 360 |
| |
361 |
| - | |
| 361 | + | |
362 | 362 |
| |
363 | 363 |
| |
364 | 364 |
| |
| |||
422 | 422 |
| |
423 | 423 |
| |
424 | 424 |
| |
425 |
| - | |
| 425 | + | |
426 | 426 |
| |
427 | 427 |
| |
428 |
| - | |
| 428 | + | |
429 | 429 |
| |
430 | 430 |
| |
431 | 431 |
| |
| |||
904 | 904 |
| |
905 | 905 |
| |
906 | 906 |
| |
907 |
| - | |
| 907 | + | |
908 | 908 |
| |
909 | 909 |
| |
910 | 910 |
| |
| |||
914 | 914 |
| |
915 | 915 |
| |
916 | 916 |
| |
917 |
| - | |
| 917 | + | |
918 | 918 |
| |
919 | 919 |
| |
920 | 920 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1266 | 1266 |
| |
1267 | 1267 |
| |
1268 | 1268 |
| |
1269 |
| - | |
| 1269 | + | |
1270 | 1270 |
| |
1271 | 1271 |
| |
1272 |
| - | |
| 1272 | + | |
1273 | 1273 |
| |
1274 | 1274 |
| |
1275 | 1275 |
| |
|
Lines changed: 11 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
208 | 214 |
| |
209 | 215 |
| |
210 | 216 |
| |
| |||
213 | 219 |
| |
214 | 220 |
| |
215 | 221 |
| |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
220 | 226 |
| |
221 | 227 |
| |
222 | 228 |
| |
| |||
241 | 247 |
| |
242 | 248 |
| |
243 | 249 |
| |
244 |
| - | |
| 250 | + | |
245 | 251 |
| |
246 | 252 |
| |
247 | 253 |
| |
|
0 commit comments
Comments
(0)