diff --git a/content/200-orm/050-overview/500-databases/500-sqlite.mdx b/content/200-orm/050-overview/500-databases/500-sqlite.mdx index 6d40fe51ec..ee3bd0316e 100644 --- a/content/200-orm/050-overview/500-databases/500-sqlite.mdx +++ b/content/200-orm/050-overview/500-databases/500-sqlite.mdx @@ -40,7 +40,19 @@ The connection URL always starts with the prefix `file:` and then contains a fil As of [`v5.4.0`](https://github.com/prisma/prisma/releases/tag/5.4.0), you can use Prisma ORM with database drivers from the JavaScript ecosystem (instead of using Prisma ORM's built-in drivers). You can do this by using a [driver adapter](/orm/overview/databases/database-drivers). -For SQLite, [`better-sqlite3`](https://github.com/WiseLibs/better-sqlite3) is one of the most popular drivers in the JavaScript ecosystem. +For SQLite, [`better-sqlite3`](https://github.com/WiseLibs/better-sqlite3) is one of the most popular drivers in the JavaScript ecosystem. + +:::warning SQLite 3.51.0+ nested EXISTS bug + +A bug report surfaced with `@prisma/adapter-better-sqlite3`. This is a [known bug in SQLite 3.51.0+](https://sqlite.org/forum/forumpost/7992838ba28e0da9e505087bebd5d67f1fc2f2f6601c5f1fb97056f782c413f8) that breaks nested `EXISTS` queries. + +**Update to v7.3.0 or later of `@prisma/adapter-better-sqlite3`** which pins to an unaffected SQLite version. + +`@prisma/adapter-libsql` is not affected by this bug. + +The SQLite team has a fix but has not yet released a patched version. + +::: This section explains how you can use it with Prisma ORM and the `@prisma/adapter-better-sqlite3` driver adapter.