Skip to content

Commit

Permalink
fix: ambiguous column name (#2232)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellie authored Jul 3, 2024
1 parent 5fe8ae0 commit a67cfc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/atuin-server-postgres/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ impl Database for Postgres {
"insert into store_idx_cache
(user_id, host, tag, idx)
values ($1, $2, $3, $4)
on conflict(user_id, host, tag) do update set idx = greatest(idx, $4)
on conflict(user_id, host, tag) do update set idx = greatest(store_idx_cache.idx, $4)
",
)
.bind(user.id)
Expand Down

0 comments on commit a67cfc8

Please sign in to comment.