-
Notifications
You must be signed in to change notification settings - Fork 285
make internal sql executor support prepared statement #22136
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
make internal sql executor support prepared statement #22136
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This pull request has been removed from the queue for the following reason: The merge conditions cannot be satisfied due to failing checks:You may have to fix your CI before adding the pull request to the queue again. |
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue #16438
What this PR does / why we need it:
make nternal sql executor support prepared statement
PR Type
Enhancement
Description
Add prepared statement support to internal SQL executor
Enable parameter binding for SQL statements with placeholders
Implement parameter handling in StatementOption and compilation
Add comprehensive test coverage for prepared statements
Changes diagram
Changes walkthrough 📝
sql_executor.go
Core prepared statement execution logic
pkg/sql/compile/sql_executor.go
options.go
Parameter handling methods for StatementOption
pkg/util/executor/options.go
types.go
StatementOption structure enhancement
pkg/util/executor/types.go
test_utils.go
Test utility for result counting
pkg/tests/testutils/test_utils.go
txn_executor_test.go
Prepared statement integration tests
pkg/tests/txnexecutor/txn_executor_test.go