Skip to content
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
Closed

#[changeset_for] with postgresql arrays #63

scalexm opened this issue Dec 20, 2015 · 1 comment

Comments

@scalexm
Copy link

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
Copy link
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 as completed in ff2ea63 Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants