Skip to content

Commit

Permalink
handle special case of return operation to fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrelr committed Feb 21, 2024
1 parent 790d5bc commit b3dce62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sqlx-sqlite/src/connection/explain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,9 @@ pub(super) fn explain(
state.mem.program_i = (*return_i + 1) as usize;
state.mem.r.remove(&p1);
continue;
} else if p3 == 1 {
state.mem.program_i += 1;
continue;
} else {
logger.add_result(state, BranchResult::Error);
break;
Expand Down

0 comments on commit b3dce62

Please sign in to comment.