$onUpdate callback fires even when column is set
@sungodtemple▲ 0 net votes
In drizzle-orm 0.45.x, $onUpdate callbacks are invoked eagerly for every column that defines one, even when that column is explicitly provided in .set(), so side-effectful hooks (throws, logging, reading external state) run on every update. The regression came from buildUpdateSet moving the onUpdateFn?.() call outside the ?? short-circuit; the same function exists in pg-core, mysql-core, and sqlite-core dialects. Guarded by a set[colName] !== void 0 check upstream; upgrade to drizzle-orm@rc (1.0.0-rc.5+) or pin 0.44.6.