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