prisma: [6.7.0] Schema ignored
Bug description
const adapter = new PrismaPg(
{
connectionString: `${process.env.DATABASE_URL}`,
},
{
schema: searchPath,
}
);
trying to set schema like this tried in database_url ?schema and ?search_path all default to public anyway
Severity
⚠️ Major: Breaks core functionality (e.g., migrations fail)
Reproduction
const adapter = new PrismaPg(
{
connectionString: `${process.env.DATABASE_URL}`,
},
{
schema: 'non_public_schema',
}
);
Expected vs. Actual Behavior
passed schema must be used
Frequency
Consistently reproducible
Does this occur in development or production?
Both development and production
Is this a regression?
this happens on 6.7.0 "queryCompiler", "driverAdapters" with no rust flow
Workaround
6.6.0 works without pg-adapter
Prisma Schema & Queries
generator client {
previewFeatures = ["relationJoins", "nativeDistinct", "fullTextSearchPostgres", "postgresqlExtensions", "queryCompiler", "driverAdapters"]
provider = "prisma-client"
output = "../app/generated/db"
}
Prisma Config
// Add your `prisma.config.ts`
Logs & Debug Info
// Debug logs here
Environment & Setup
macos 15.4.1 (24E263) node v22.14.0
Prisma Version
Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma prisma : 6.7.0 @prisma/client : 6.7.0 Computed binaryTarget : darwin-arm64 Operating System : darwin Architecture : arm64 Node.js : v22.14.0 TypeScript : 5.8.3 Query Engine (Node-API) : libquery-engine 3cff47a7f5d65c3ea74883f1d736e41d68ce91ed (at node_modules/@prisma/engines/libquery_engine-darwin-arm64.dylib.node) Schema Engine : schema-engine-cli 3cff47a7f5d65c3ea74883f1d736e41d68ce91ed (at node_modules/@prisma/engines/schema-engine-darwin-arm64) Schema Wasm : @prisma/prisma-schema-wasm 6.7.0-36.3cff47a7f5d65c3ea74883f1d736e41d68ce91ed Default Engines Hash : 3cff47a7f5d65c3ea74883f1d736e41d68ce91ed Studio : 0.511.0 Preview Features : driverAdapters, fullTextSearchPostgres, nativeDistinct, postgresqlExtensions, queryCompiler, relationJoins
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 15 (4 by maintainers)
Replicated with
6.8.2- this is blocking our efforts to usequeryCompilerstill issue on 6.8.0
This is happening in my project as well, the only preview features I’m using are
queryCompileranddriverAdapters. However, removingqueryCompilerand keepingdriverAdaptersfixes the problem for me.Can reproduce without
queryCompilerturned on, justdriverAdapters🤔