Skip to content
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

PostgreSQL - Error when "column" is a type 'void' #41

Open
carlos-rian opened this issue Dec 29, 2022 · 0 comments
Open

PostgreSQL - Error when "column" is a type 'void' #41

carlos-rian opened this issue Dec 29, 2022 · 0 comments
Labels
not a bug The quaint doesn't have support yet.

Comments

@carlos-rian
Copy link
Owner

Hey guys,

I try to use quaint in a simple benchmark where the database has a lag/delay in response.
So I'm using pg_sleep to simulate this delay.

But with this command returning a void, Quaint has an error.

In that case, would it be better to deserialize to null?

DB: PostgreSQL
Rust: 1.64.0
Quaint: https://github.com/prisma/quaint

Example:

// query
let sql = "SELECT pg_sleep(0.1);";

// quaint connection
let conn = Quaint::new("postgresql://postgres:postgrespw@localhost:49153").await.unwrap();

// run query
let result = conn.query_raw(sql, &[]).await.unwrap();

Error: Column type 'void' could not be deserialized from the database.

issue link: prisma/quaint#414

@carlos-rian carlos-rian added the not a bug The quaint doesn't have support yet. label Jan 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not a bug The quaint doesn't have support yet.
Projects
None yet
Development

No branches or pull requests

1 participant