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 <[email protected]>
  • Loading branch information
rblaine95 committed Nov 10, 2023
1 parent 036efad commit b8c18d3
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 b8c18d3

Please sign in to comment.