Skip to content

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

Open
@carlos-rian

Description

@carlos-rian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    not a bugThe quaint doesn't have support yet.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions