Commit 79f3d71
[FIX] util.{remove_records,replace_record_references_batch}
Correctly handle changes in company dependent jsonb columns.
Use the function `jsonb_object` instead of a casted string, so
we don't get literal `{` and `}` into the query. Such characters
needs to be escaped to allow the query to be exploded.
Also use `cr.mogrify` instead of manual formatting of the jsonpath
argument of the query.
closes #141
Signed-off-by: Christophe Simonis (chs) <[email protected]>
Co-authored-by: Edoardo Piroli <[email protected]>
Co-authored-by: Alvaro Fuentes <[email protected]>1 parent 5f199f2 commit 79f3d71
1 file changed
+28
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
414 | 415 | | |
415 | 416 | | |
416 | 417 | | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
417 | 423 | | |
418 | 424 | | |
419 | 425 | | |
420 | 426 | | |
421 | 427 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
434 | 439 | | |
435 | 440 | | |
436 | 441 | | |
| 442 | + | |
437 | 443 | | |
438 | | - | |
| 444 | + | |
439 | 445 | | |
440 | 446 | | |
441 | 447 | | |
| |||
1469 | 1475 | | |
1470 | 1476 | | |
1471 | 1477 | | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
1472 | 1483 | | |
1473 | 1484 | | |
1474 | 1485 | | |
1475 | 1486 | | |
1476 | 1487 | | |
1477 | 1488 | | |
1478 | | - | |
| 1489 | + | |
1479 | 1490 | | |
1480 | 1491 | | |
1481 | 1492 | | |
1482 | | - | |
1483 | | - | |
| 1493 | + | |
1484 | 1494 | | |
1485 | 1495 | | |
1486 | 1496 | | |
| 1497 | + | |
1487 | 1498 | | |
1488 | | - | |
| 1499 | + | |
1489 | 1500 | | |
1490 | 1501 | | |
1491 | 1502 | | |
| |||
0 commit comments