prisma / quaint

SQL Query AST and Visitor for Rust
Apache License 2.0
582 stars 61 forks source link

feat: add unsupported column type error #359

Closed Weakky closed 2 years ago

Weakky commented 2 years ago

Overview

Related to a bunch of queryRaw issues where folks query raw Unsupported columns (eg: https://github.com/prisma/prisma/issues/12344), leading to the following unhelpful error:

error deserializing column 7: cannot convert between the Rust type core::option::Option::alloc::string::String and the Postgres typetsvector

This PR provides a known Quaint error for those cases which enables the Query Engine to match it and provide even more context.