Closed serrf0f closed 4 months ago
Here is the regression introduced by 1.0.1: https://github.com/lucia-auth/lucia/blob/5c366f5145aaf944362e49058edf7b413d1e7d35/packages/adapter-drizzle/src/drivers/sqlite.ts#L38
I believe this has been fixed yesterday, assuming it was an issue with D1
https://github.com/cloudflare/workers-sdk/issues/3160#issuecomment-1943795347
Gonna close this for now. Please open a new issue if the issue persists.
Update: my fix landed with wrangler@3.57.2
, and I can confirm that the problem is finally gone.
I noticed that there's a workaround for this case: https://github.com/lucia-auth/lucia/blob/main/packages/adapter-drizzle/src/drivers/sqlite.ts#L38-L42
@pilcrowOnPaper, I think you can remove it to improve the query performance.
Package
@lucia-auth/session-drizzle
Describe the bug
There seems to be an ongoing issue with Cloudflare D1 that impacts the Drizzle ORM behavior.
When joining two tables that have common attributes names, the select will be wrong.
https://github.com/drizzle-team/drizzle-orm/issues/555