diff --git a/askar-storage/src/backend/postgres/mod.rs b/askar-storage/src/backend/postgres/mod.rs index e9abb63a..edede0cd 100644 --- a/askar-storage/src/backend/postgres/mod.rs +++ b/askar-storage/src/backend/postgres/mod.rs @@ -733,7 +733,7 @@ fn perform_scan( let mut acquired = acquire_session(&mut active).await?; let mut rows = sqlx::query_with(query.as_str(), params).fetch(acquired.connection_mut()); while let Some(row) = rows.try_next().await? { - let tags = row.try_get::, _>(4)?.map(String::into_bytes).unwrap_or_default(); + let tags = row.try_get::, _>(5)?.map(String::into_bytes).unwrap_or_default(); let kind: i32 = row.try_get(1)?; let kind = EntryKind::try_from(kind as usize)?; batch.push(EncScanEntry {