Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table::is_row_present: don't panic #1526

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Conversation

gefjon
Copy link
Contributor

@gefjon gefjon commented Jul 17, 2024

Description of Changes

Shuffle around checks in Table::is_row_present to avoid panicing on out-of-bounds index in Table::page_and_offset.

API and ABI breaking changes

N/a.

Expected complexity level and risk

Testing

Describe any testing you've done, and any testing you'd like your reviewers to do,
so that you're confident that all the changes work as expected!

  • Wrote a test that used to fail and now passes.

@gefjon gefjon added bugfix Fixes something that was expected to work differently backward-compatible labels Jul 17, 2024
@gefjon gefjon requested a review from kazimuth July 17, 2024 17:45
Copy link
Contributor

@kazimuth kazimuth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Nice combinators.

@gefjon gefjon added this pull request to the merge queue Jul 17, 2024
Merged via the queue into master with commit 04a7508 Jul 17, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backward-compatible bugfix Fixes something that was expected to work differently
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants