Skip to content

Not Support data type: super in AWS Redshift #3817

Open
@iduanyingjie

Description

@iduanyingjie

I have found these related issues/pull requests

I haven't found similar issues

Description

If a field in the query statement is of super data-type an error is reported: error returned from database: cannot cast type regtype to character varying

Reproduction steps

let mut stream = sqlx::query(sql).fetch(&*POOL).take(limit);
let mut values = vec![];
while let Some(res) = stream.next().await {
    match res {
        Ok(row) => values.push(row_to_value(&row)),
        Err(err) => tracing::error!(%err),
    }
}
Ok(values)

SQLx version

0.8.3

Enabled SQLx features

"runtime-tokio-rustls", "postgres", "chrono", "bigdecimal"

Database server and version

AWS Redshift

Operating system

linux

Rust version

rustc 1.87.0-nightly (f04bbc60f 2025-02-20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdb:postgresRelated to PostgreSQLdb:third-party-compatConcerns a third-party database implementation that advertises support for a well known protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions