1
1
mirror of https://github.com/ellie/atuin.git synced 2024-07-07 09:26:22 +03:00

fix: ambiguous column name (#2232)

This commit is contained in:
Ellie Huxtable 2024-07-03 08:24:05 +01:00 committed by GitHub
parent 5fe8ae05e5
commit a67cfc82fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)