Skip to content
Commit Detail

Commit 18e7ad4

Author
Florent Collin <fcollin@cloudflare.com> 2026-02-06 14:14:53 +0000
Parents
7b9462c
Tree
6b8fe1c
CFSQL-1473: fix D1 exec throwing TypeError on invalid SQL queries

We were trying to call `addAggregatedD1MetaToSpan` before checking if
any of the results are errors in a `.exec` call. When an error is returned the meta
property is not set.

This commit is now checking the errors first and then call the
`addAggregatedD1MetaToSpan` if there is no error.

Files changed