Skip to content

Commit

Permalink
Correct sqlite-to-postgres column mapping
Browse files Browse the repository at this point in the history
A backend column was added later to the pstat_series table. This commit
reorders the column order to comply with the schema.
  • Loading branch information
eth3lbert committed Feb 29, 2024
1 parent 8aa3c08 commit 0dd9218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/src/bin/sqlite-to-postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ struct PstatSeriesRow<'a> {
krate: &'a str,
profile: &'a str,
scenario: &'a str,
backend: &'a str,
metric: &'a str,
backend: &'a str,
}

impl Table for PstatSeries {
Expand All @@ -314,8 +314,8 @@ impl Table for PstatSeries {
krate: row.get_ref(1).unwrap().as_str().unwrap(),
profile: row.get_ref(2).unwrap().as_str().unwrap(),
scenario: row.get_ref(3).unwrap().as_str().unwrap(),
backend: row.get_ref(4).unwrap().as_str().unwrap(),
metric: row.get_ref(5).unwrap().as_str().unwrap(),
backend: row.get_ref(4).unwrap().as_str().unwrap(),
})
.unwrap();
}
Expand Down

0 comments on commit 0dd9218

Please sign in to comment.