mirror of
https://github.com/atuinsh/atuin.git
synced 2024-11-25 17:54:55 +01:00
fix: ambiguous column name (#2232)
This commit is contained in:
parent
5fe8ae05e5
commit
a67cfc82fe
@ -571,7 +571,7 @@ impl Database for Postgres {
|
|||||||
"insert into store_idx_cache
|
"insert into store_idx_cache
|
||||||
(user_id, host, tag, idx)
|
(user_id, host, tag, idx)
|
||||||
values ($1, $2, $3, $4)
|
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)
|
.bind(user.id)
|
||||||
|
Loading…
Reference in New Issue
Block a user