forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd99d0e6
committed
Remove ill-conceived ban on zero length json object keys.
We removed a similar ban on this in json_object recently, but the ban indatum_to_json was left, which generate4d sprutious errors in othee jsongenerators, notable json_build_object.Along the way, add an assertion that datum_to_json is not passed a nullkey. All current callers comply with this rule, but the assertion willcatch any possible future misbehaviour.1 parent2024ead commitd99d0e6
1 file changed
+3
-4
lines changedLines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1341 | 1341 |
| |
1342 | 1342 |
| |
1343 | 1343 |
| |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
1344 | 1347 |
| |
1345 | 1348 |
| |
1346 | 1349 |
| |
| |||
1486 | 1489 |
| |
1487 | 1490 |
| |
1488 | 1491 |
| |
1489 |
| - | |
1490 |
| - | |
1491 |
| - | |
1492 |
| - | |
1493 | 1492 |
| |
1494 | 1493 |
| |
1495 | 1494 |
| |
|
0 commit comments
Comments
(0)