Commit 95b758c
authored
fix(calibration): cap raw-context diffs on the D1 CLI path — SQLITE_TOOBIG hit live (#8248)
wrangler --command cannot bind parameters, so the UPDATE inlines the diff
as literal SQL and quote-doubling can double it past D1's per-statement
length (failed live at row 37 of the first cloud apply). The literal path
now caps at 45KB with a self-describing truncation marker inside the diff
text; the pg driver binds parameters and keeps full diffs — production is
unaffected.
Advances #81701 parent 2defb4a commit 95b758c
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
444 | 450 | | |
445 | 451 | | |
446 | 452 | | |
| |||
0 commit comments