mirror of
https://github.com/allankoechke/turso.git
synced 2026-12-02 01:41:42 +00:00
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>