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

result: fix bug: paging state taken from PREPARED response instead of RESULT #1063

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

wprzytula
Copy link
Collaborator

@wprzytula wprzytula commented Aug 22, 2024

A bug is fixed that when set_use_cached_result_metadata flag is set, then the ResultMetadata would be taken from PreparedStatement including paging_state, effectively yielding empty paging state for every request with the flag set.
A related regression test is added.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • I added relevant tests for new features and bug fixes.
  • All commits compile, pass static checks and pass test.
  • PR description sums up the changes and reasons why they should be introduced.
  • [ ] I have provided docstrings for the public items that I want to introduce.
  • [ ] I have adjusted the documentation in ./docs/source/.
  • [ ] I added appropriate Fixes: annotations to PR description.

@wprzytula wprzytula self-assigned this Aug 22, 2024
@wprzytula wprzytula added the bug Something isn't working label Aug 22, 2024
A bug is fixed that when `set_use_cached_result_metadata` flag is set,
then the ResultMetadata would be taken from PreparedStatement including
paging_state, effectively yielding empty paging state for every request
with the flag set.
A regression test is added.
@wprzytula wprzytula force-pushed the fix-cached-metadata branch from 708ae23 to 5249309 Compare August 22, 2024 07:43
Copy link

cargo semver-checks found no API-breaking changes in this PR! 🎉🥳
Checked commit: 5249309

@wprzytula wprzytula merged commit 45f0288 into scylladb:main Aug 22, 2024
11 checks passed
@wprzytula wprzytula deleted the fix-cached-metadata branch August 22, 2024 08:20
wprzytula added a commit to wprzytula/scylla-rust-driver that referenced this pull request Aug 22, 2024
result: fix bug: paging state taken from PREPARED response instead of RESULT
(cherry picked from commit 45f0288)
@wprzytula wprzytula mentioned this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants