Skip to content

Commit

Permalink
fix tags column index
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <[email protected]>
  • Loading branch information
andrewwhitehead committed Jul 20, 2023
1 parent 02936eb commit bd9f686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion askar-storage/src/backend/postgres/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Option<String>, _>(4)?.map(String::into_bytes).unwrap_or_default();
let tags = row.try_get::<Option<String>, _>(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 {
Expand Down

0 comments on commit bd9f686

Please sign in to comment.