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

Server needs Postgres 9.5 to support ON CONFLICT DO NOTHING #66

Open
todo bot opened this issue Apr 26, 2019 · 0 comments
Open

Server needs Postgres 9.5 to support ON CONFLICT DO NOTHING #66

todo bot opened this issue Apr 26, 2019 · 0 comments
Assignees

Comments

@todo
Copy link

todo bot commented Apr 26, 2019

In the meantime, we will just ignore the result from the following execute.


noted/db/src/models.rs

Lines 254 to 259 in 0787ff0

// TODO: Server needs Postgres 9.5 to support ON CONFLICT DO NOTHING
// BODY: In the meantime, we will just ignore the result from the following execute.
let _ = diesel::insert_into(tags)
.values(&set_tags.iter().map(|t| tag.eq(t)).collect::<Vec<_>>())
// .on_conflict_do_nothing()
.execute(db);


This issue was generated by todo based on a TODO comment in 0787ff0 when #65 was merged. cc @zmbush.
@todo todo bot assigned zmbush Apr 26, 2019
@todo todo bot added the todo 🗒️ label Apr 26, 2019
@zmbush zmbush pinned this issue Apr 26, 2019
@zmbush zmbush unpinned this issue Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant