Files
turso/serverless/javascript/src
Glauber Costa 8430a26743 fix prepare() losing transaction baton in serverless driver
Connection.prepare() created a throwaway Session for the describe call,
which had no baton and therefore ran on a separate server-side connection.
This meant it could not see uncommitted DDL (e.g. CREATE TABLE) from the
current transaction.

Use this.session instead and serialize through execLock, matching how
exec() and execute() already work.

Fixes #6562

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-24 17:33:59 -04:00
..
…
…