diff options
| author | Ellie Huxtable <ellie@atuin.sh> | 2024-07-03 08:24:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-03 08:24:05 +0100 |
| commit | a67cfc82fe0dc907a01f07a0fd625701e062a33b (patch) | |
| tree | 45dad60b1cbdd1ee64b574ed85d81087a45eb0e0 /crates/atuin-server-postgres/src/lib.rs | |
| parent | fix: idx cache inconsistency (#2231) (diff) | |
| download | atuin-a67cfc82fe0dc907a01f07a0fd625701e062a33b.zip | |
fix: ambiguous column name (#2232)
Diffstat (limited to 'crates/atuin-server-postgres/src/lib.rs')
| -rw-r--r-- | crates/atuin-server-postgres/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/atuin-server-postgres/src/lib.rs b/crates/atuin-server-postgres/src/lib.rs index 47e9486b..00a832d4 100644 --- a/crates/atuin-server-postgres/src/lib.rs +++ b/crates/atuin-server-postgres/src/lib.rs @@ -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) |
