Open divyenduz opened 4 years ago
This is still reproducible in 2.21
DBeaver display the result as an empty cell:
From internal discussion: Our Rust postgres library we are using can not map this void
value coming back here. Right now the "solution" is to use $executeRaw
and not $queryRaw
.
Still reproducible but doesn't seem to be an important issue.
Can reproduce on our internal dev version 4.4.0-dev.30
, queryRaw fails, executeRaw works.
PrismaClientKnownRequestError:
Invalid `prisma.$queryRaw()` invocation:
Raw query failed. Code: `N/A`. Message: `Failed to deserialize column of type 'void'. If you're using $queryRaw and this column is explicitly marked as `Unsupported` in your Prisma schema, try casting this column to any supported Prisma type such as `String`.`
at RequestHandler.handleRequestError (/Users/j42/Repros/14999/node_modules/@prisma/client/runtime/index.js:30850:13)
at RequestHandler.request (/Users/j42/Repros/14999/node_modules/@prisma/client/runtime/index.js:30833:12)
at async Proxy._request (/Users/j42/Repros/14999/node_modules/@prisma/client/runtime/index.js:31805:16)
at async /Users/j42/Repros/14999/main.ts:52:3 {
code: 'P2010',
clientVersion: '4.4.0-dev.30',
meta: {
code: 'N/A',
message: "Failed to deserialize column of type 'void'. If you're using $queryRaw and this column is explicitly marked as `Unsupported` in your Prisma schema, try casting this column to any supported Prisma type such as `String`."
}
}
Bug description
Executing a
SELECT pg_sleep(1)
query with $queryRaw crashes. It works with$executeRaw
. The problem is specific to Postgres.How to reproduce
Expected behavior
It shouldn't crash.
Prisma information