-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Getting a "Raw query failed. Code: N/A
. Message: error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable column
#11339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
domain/client
Issue in the "Client" domain: Prisma Client, Prisma Studio etc.
kind/bug
A reported bug.
topic: postgresql
topic: raw
$queryRaw(Unsafe) and $executeRaw(Unsafe): https://www.prisma.io/docs/concepts/components/prisma-cli
Milestone
Comments
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
`` error when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
```` error when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
```` error when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable columnN/A\
. Message: \error deserializing column 0: a Postgres value was \
NULL\\
" error when using Postgres ARRAY_AGG with a nullable column
N/A\
. Message: \error deserializing column 0: a Postgres value was \
NULL\\
" error when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
" error when using Postgres ARRAY_AGG with a nullable column
````
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
" error when using Postgres ARRAY_AGG with a nullable column
````Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
`````` error when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
`````` error when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
error
``` when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
error
``` when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
error
`` when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
error
`` when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: error deserializing column 0: a Postgres value was
NULL error
` when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: error deserializing column 0: a Postgres value was
NULL error
` when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable columnN/A\
. Message: error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable column
N/A\
. Message: error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable columnN/A\
. Message: \error deserializing column 0: a Postgres value was \
NULL\\
" error when using Postgres ARRAY_AGG with a nullable column
N/A\
. Message: \error deserializing column 0: a Postgres value was \
NULL\\
" error when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
```` error when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
```` error when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
````` error when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
````` error when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
`````` error when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
`````` error when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
``````` error when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
``````` error when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code: \
N/A\. Message: \
error deserializing column 0: a Postgres value was NULL
``````` error when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code: \
N/A\. Message: \
error deserializing column 0: a Postgres value was NULL
``````` error when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code:
N/A. Message: \
error deserializing column 0: a Postgres value was NULL
``` error when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code:
N/A. Message: \
error deserializing column 0: a Postgres value was NULL
``` error when using Postgres ARRAY_AGG with a nullable columnRaw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
``` error when using Postgres ARRAY_AGG with a nullable column
Raw query failed. Code:
N/A. Message:
error deserializing column 0: a Postgres value was NULL
``` error when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: ```error deserializing column 0: a Postgres value was
NULL`````" error when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: ```error deserializing column 0: a Postgres value was
NULL`````" error when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: ```error deserializing column 0: a Postgres value was
NULL
`" error when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: ```error deserializing column 0: a Postgres value was
NULL
`" error when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: ``error deserializing column 0: a Postgres value was
NULL
`" error when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: ``error deserializing column 0: a Postgres value was
NULL
`" error when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: ```error deserializing column 0: a Postgres value was
NULL
``" error when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: ```error deserializing column 0: a Postgres value was
NULL
``" error when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: ````error deserializing column 0: a Postgres value was
NULL
```" error when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: ````error deserializing column 0: a Postgres value was
NULL
```" error when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: ``error deserializing column 0: a Postgres value was
NULL````" error when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: ``error deserializing column 0: a Postgres value was
NULL````" error when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: ``error deserializing column 0: a Postgres value was \
NULL````" error when using Postgres ARRAY_AGG with a nullable column
N/A
. Message: ``error deserializing column 0: a Postgres value was \
NULL````" error when using Postgres ARRAY_AGG with a nullable column error deserializing column 0: a Postgres value was
NULL
`" error when using Postgres ARRAY_AGG with a nullable column
error deserializing column 0: a Postgres value was
NULL
`" error when using Postgres ARRAY_AGG with a nullable column error deserializing column 0: a Postgres value was
NULL
``" error when using Postgres ARRAY_AGG with a nullable column
error deserializing column 0: a Postgres value was
NULL
``" error when using Postgres ARRAY_AGG with a nullable columnN/A
. Message: error deserializing column 0: a Postgres value was
NULL``" error when using Postgres ARRAY_AGG with a nullable column
I concede, it's impossible to escape backticks in PR titles :D |
ruohola
added a commit
to apilytics/apilytics
that referenced
this issue
Jan 24, 2022
The issue was that `prisma.$queryRaw` doesn't seem to support Postgres's `ARRAY_AGG` with null column values. More info: prisma/prisma#11339
ruohola
added a commit
to apilytics/apilytics
that referenced
this issue
Jan 24, 2022
The issue was that `prisma.$queryRaw` doesn't seem to support Postgres's `ARRAY_AGG` with null column values. More info: prisma/prisma#11339 Also, just render these `0` status codes as `'unknown'` in the frontend. We could just filter these away completely in the SQL, but if someone is using a bugged self-made integration and doesn't send valid status codes (we have to keep the status-code in the middleware API as nullable) it could make their dashboard show no data.
ruohola
added a commit
to apilytics/apilytics
that referenced
this issue
Jan 24, 2022
The issue was that `prisma.$queryRaw` doesn't seem to support Postgres's `ARRAY_AGG` with null column values. More info: prisma/prisma#11339 Also, just render these `0` status codes as `'unknown'` in the frontend. We could just filter these away completely in the SQL, but if someone is using a bugged self-made integration and doesn't send valid status codes (we have to keep the status-code in the middleware API as nullable) it could make their dashboard show no data.
ruohola
added a commit
to apilytics/apilytics
that referenced
this issue
Jan 24, 2022
The issue was that `prisma.$queryRaw` doesn't seem to support Postgres's `ARRAY_AGG` with null column values. More info: prisma/prisma#11339 Also, just render these `0` status codes as `'unknown'` in the frontend. We could just filter these away completely in the SQL, but if someone is using a bugged self-made integration and doesn't send valid status codes (we have to keep the status-code in the middleware API as nullable) it could make their dashboard show no data.
ruohola
added a commit
to apilytics/apilytics
that referenced
this issue
Jan 24, 2022
The issue was that `prisma.$queryRaw` doesn't seem to support Postgres's `ARRAY_AGG` with null column values. More info: prisma/prisma#11339 Also, just render these `0` status codes as `'unknown'` in the frontend. We could just filter these away completely in the SQL, but if someone is using a bugged self-made integration and doesn't send valid status codes (we have to keep the status-code in the middleware API as nullable) it could make their dashboard show no data.
We appreciate the effort! We have a handful of other raw issues. I see us tackling this all in one go soonish. |
50 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
domain/client
Issue in the "Client" domain: Prisma Client, Prisma Studio etc.
kind/bug
A reported bug.
topic: postgresql
topic: raw
$queryRaw(Unsafe) and $executeRaw(Unsafe): https://www.prisma.io/docs/concepts/components/prisma-cli
Bug description
I'm trying to use Postgres's
ARRAY_AGG
function withprisma.$queryRaw
and get an error, but when I do the same query inpsql
(=PostgreSQL interactive terminal) I get no error.How to reproduce
Minimal code that throws shows this issue:
schema.prisma
:Insert two values with
psql
:Works fine when querying them in
psql
Try to do the same with Prisma:
We get an error:
Expected behavior
No error.
Prisma information
Schema included above.
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: