-
-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postgres-types
: Can't insert oidvector
#1025
Comments
https://docs.rs/postgres_array/latest/postgres_array/ provides more control over array types. |
Though we could (and probably should) update that ToSql impl to use a lower_bound of 0 when the target type is oidvector. |
I will take a look at that and see if it solves the problem. Thanks! |
I can confirm that |
postgres-types
does not seem to have built in support foroidvector
. I tried to do this by insertingvec![1_u32, 2_u32]
as aVec<Oid>
, but doing so results in: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
ofVec
is always setting it as 1.Is there another way to send in
oidvector
as a bound parameter?The text was updated successfully, but these errors were encountered: