You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: prevent TypeError in batch with output parameters when sql errors
When a batch with declared output parameters fails before the appended
`select 1 as [___return___], ...` trailer can run (e.g. a compile error
or a runtime error under SET XACT_ABORT ON), `recordsets` is empty and
`recordsets.pop()[0]` throws synchronously inside the tedious request
callback, preventing the user callback from being invoked and leaving
the request promise unsettled.
Guard the access with optional chaining so the SQL error propagates
through the existing callback path and rejects the promise normally.
Fixes#1863
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments