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

#[changeset_for] with postgresql arrays #63

Closed
scalexm opened this Issue Dec 20, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@scalexm

scalexm commented Dec 20, 2015

While I can do this:

table! {
    foo {
        id -> Serial,
        bar -> Array<Integer>,
    }
}

#[derive(Queriable)]
struct Foo {
    bar: Vec<i32>,
}

I can't do that:

#[changeset_for(foo)]
struct Foo {
    bar: Vec<i32>,
}

Is there a way to achieve this?

@sgrif

This comment has been minimized.

Member

sgrif commented Dec 20, 2015

I've fixed the issue with Vec<T>, but there's a separate issue here when #[changeset_for] is used on a struct with a single field which is not yet fixed. See #66.

@sgrif sgrif closed this in ff2ea63 Dec 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment