Skip to content

test(prepared_statements): avoid corrupting PS after setting number of PS to 0 - #1340

Merged
meskill merged 1 commit into
mainfrom
meskill-2026-08-08-fix-prepared_statements---wsp
Aug 12, 2026
Merged

test(prepared_statements): avoid corrupting PS after setting number of PS to 0#1340
meskill merged 1 commit into
mainfrom
meskill-2026-08-08-fix-prepared_statements---wsp

Conversation

@meskill

@meskill meskill commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

it was fixed already by #1331 but anyway at-least here is integration-like test for this with the helpers to reuse later

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread pgdog/src/backend/server.rs
Comment thread pgdog/src/backend/server.rs Outdated
@meskill
meskill force-pushed the meskill-2026-08-08-fix-prepared_statements---wsp branch from bd156b4 to 5f1a2a3 Compare August 11, 2026 18:21
Base automatically changed from meskill-2026-08-10-fix-prepared_statements---vxw to main August 11, 2026 18:51
@meskill
meskill force-pushed the meskill-2026-08-08-fix-prepared_statements---wsp branch from 5f1a2a3 to e48b1aa Compare August 11, 2026 18:51
… PS to 0

- prevent counter reset to avoid newly created prepared statement treated like old one without shape check
- do not clear global hashmap for keys since that could lead to attempt to reuse statement name wiped from global cache
@meskill
meskill force-pushed the meskill-2026-08-08-fix-prepared_statements---wsp branch from e48b1aa to 6806997 Compare August 11, 2026 18:55
@meskill
meskill merged commit e785ab1 into main Aug 12, 2026
28 checks passed
@meskill
meskill deleted the meskill-2026-08-08-fix-prepared_statements---wsp branch August 12, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants