Skip to content

GH-1117: Use updated handle in prepared stmt#1120

Open
ennuite wants to merge 2 commits intoapache:mainfrom
ennuite:gh-1117-prep-stat-handle
Open

GH-1117: Use updated handle in prepared stmt#1120
ennuite wants to merge 2 commits intoapache:mainfrom
ennuite:gh-1117-prep-stat-handle

Conversation

@ennuite
Copy link
Copy Markdown
Contributor

@ennuite ennuite commented Apr 18, 2026

What's Changed

When a server sent an updated handle for a prepared statement after parameters were bound,
the client would use the new handle for the subsequent call to GetFlightInfo and then discard it. Any other
future requests for that prepared statement would use the original handle.

With these changes, the updated handle is stored and reused for future requests.

This change was created with AI assistance (Claude Code). All lines were manually reviewed by a human. The output is not copyrightable subject matter.

Closes #1117.

@github-actions
Copy link
Copy Markdown

Thank you for opening a pull request!

Please label the PR with one or more of:

  • bug-fix
  • chore
  • dependencies
  • documentation
  • enhancement

Also, add the 'breaking-change' label if appropriate.

See CONTRIBUTING.md for details.

@ennuite ennuite marked this pull request as ready for review April 18, 2026 23:08
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.

[Flight SQL] ClosePreparedStatement uses original handle instead of updated handle from server

1 participant