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
A second review of draft PR #249 (D1 database core, feat/d1-store) found 11 items in server/src/db.ts, db-d1.ts, sql-dialect.ts, migrate.ts, db-sqlite.ts and server/tests/support/database.ts. One is high: an in-transaction counter increment can lose an increment when an autocommit increment runs between its read and its commit.
Reproduction
Each item is proven by a failing test or a read of the cited lines on the PR branch. The per-item result is in the fix PR body.
Expected behavior
Real items are fixed on feat/d1-store. Items that are not real are recorded with evidence.
Environment and checks
Branch feat/d1-store. Checks: npx vitest run tests/db.test.ts tests/migrations.test.ts and npm run typecheck in server/. Not deployed; this issue stays open until D1 is deployed and tested.
Activity