Files
Eric Allam 1c3448541d
📦 Preview packages (pkg.pr.new) / Build and publish previews (push) Has been cancelled
fix(clickhouse): make the patched rawMessage non-enumerable at the source
Making the field non-enumerable only on InsertError left the leak open one
layer down: the client logs the raw ClickHouseError at every insert-error site
before converting it, and the patch assigned rawMessage as a plain enumerable
property, so the offending-row snippet still reached structured logs. The patch
now defines the field non-enumerable itself.

Covers the patch's behaviour with a test that reads the row hint back through
the public parseError export, which also fails loudly if the patch ever stops
being applied.
2026-07-27 22:53:37 +01:00
..