use excluded where relevant
This commit is contained in:
@@ -247,7 +247,7 @@ pub async fn resolve<'a>(
|
||||
|
||||
if let Connection::Sql(db) = conn {
|
||||
sqlx::query!(
|
||||
"INSERT INTO pip_resolution_cache (hash, lockfile, expiration) VALUES ($1, $2, now() + ('5 mins')::interval) ON CONFLICT (hash) DO UPDATE SET lockfile = $2",
|
||||
"INSERT INTO pip_resolution_cache (hash, lockfile, expiration) VALUES ($1, $2, now() + ('5 mins')::interval) ON CONFLICT (hash) DO UPDATE SET lockfile = EXCLUDED.lockfile",
|
||||
req_hash,
|
||||
lock.clone(),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user