scylladb / scylla-rust-driver

Async CQL driver for Rust, optimized for ScyllaDB!
Apache License 2.0
571 stars 99 forks source link

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

Closed wprzytula closed 1 month ago

wprzytula commented 1 month ago

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

github-actions[bot] commented 1 month ago

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