Skip to content

Commit

Permalink
Re-add FOR NO KEY UPDATE to FETCH_QUERY_UPDATE
Browse files Browse the repository at this point in the history
Signed-off-by: Robbie Blaine <robbieblaine.rb@gmail.com>
  • Loading branch information
rblaine95 committed Nov 17, 2023
1 parent 4d47e95 commit 94f4d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion askar-storage/src/backend/postgres/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const FETCH_QUERY_UPDATE: &str = "
*
FROM
fetched_data
FOR UPDATE";
FOR NO KEY UPDATE";
const INSERT_QUERY: &str = "INSERT INTO items (profile_id, kind, category, name, value, expiry)
VALUES ($1, $2, $3, $4, $5, $6)
ON CONFLICT DO NOTHING RETURNING id";
Expand Down

0 comments on commit 94f4d97

Please sign in to comment.