Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

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

Open
carlos-rian opened this issue Oct 19, 2022 · 0 comments
Open

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

carlos-rian opened this issue Oct 19, 2022 · 0 comments

Comments

@carlos-rian
Copy link

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.

@carlos-rian carlos-rian changed the title Error - Column type 'void' PostgreSQL - Error when "column" is a type 'void' Dec 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant