Skip to content

Commit

Permalink
Fix cycling
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff committed Jan 22, 2024
1 parent 942850a commit f4a8506
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ macro_rules! with_id_excess {
.max_bind_values()
.expect("Test expected to run only for relational databases.");

let cycle = |argn: usize| (argn + 1 % 10).to_string();
let cycle = |argn: usize| (argn % 10 + 1).to_string();
let id_list = (0..=max_bind_values).map(cycle).collect::<Vec<_>>().join(",");
$query_template.replace(":id_list:", &id_list)
}};
Expand Down

0 comments on commit f4a8506

Please sign in to comment.