Skip to content

postgres-types: Can't insert oidvector #1025

Closed
@mstrydom

Description

@mstrydom

postgres-types does not seem to have built in support for oidvector. I tried to do this by inserting vec![1_u32, 2_u32] as a Vec<Oid>, but doing so results in:

invalid oidvector data

Which seems to come from this line in the Postgres codebase. It looks to me like Postgres assumes a lower_bound of 0, but ToSql of Vec is always setting it as 1.

Is there another way to send in oidvector as a bound parameter?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions