Repository navigation
Backport #108469 to 26.3: Fix SQL injection in PostgreSQL wire protocol parameter binding - #118083
Merged
Merged
Conversation
…ol parameter binding
robot-clickhouse
force-pushed
the
backport/26.3/108469
branch
from
September 4, 2026 12:09
1fad5f0 to
b69b834
Compare
Contributor
|
Workflow [BackportPR], commit [6d75ac2] Summary: ❌
|
Store the Close packet target byte while deserializing the message. The backported PostgreSQL handler uses it to distinguish statement and portal closure. CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118083&sha=b69b834faf6b107c00df1aabdf0fa493f56e451c&name_0=BackportPR PR: #118083
The 26.3 backport carries `classifyNoOpDriverCommand` but does not use it in the simple-query path. Mark the helper `[[maybe_unused]]` so Darwin builds do not fail with `-Werror`. CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118083&sha=8d7a501c48ac891a090b4f5b29a1d5a95be87ca1&name_0=BackportPR PR: #118083
Include `Common/VectorWithMemoryTracking.h` for `ASTPreparedStatement::parameter_types`. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118083&sha=fbf013c7a65bf8c864d9f64b18e40778a08cc1c1&name_0=BackportPR PR: #118083
Send the correct `CloseComplete` frame tag and recover extended-query execution errors at `Sync` when no statement response was sent. Add the missing .NET reference and remove catalog-view tests that require unbackported PostgreSQL catalog support. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118083&sha=97f986bceaf813bce79cb45ddf4dbe9af49739af&name_0=BackportPR PR: #118083
Use the `timestamptz` text form that `26.3` parses and remove the PostgreSQL .NET client test because its integration harness is not available in this release. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118083&sha=3d2502a18df9f55fe311601177bfa983345bb243&name_0=BackportPR PR: #118083
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original pull-request #108469
Cherry-pick pull-request #118052
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.3.33.5