clickhouse.rs icon indicating copy to clipboard operation
clickhouse.rs copied to clipboard

Don't specify 'readonly' twice if it appears in the client's option list

Open OrionNebula opened this issue 1 year ago • 1 comments

Summary

If a user specifies the "readonly" option at the client level and tries to execute a query too long to fit in the GET request's query parameters, "readonly" is set twice in the header - once as "1" and again as whatever the user specified. In particular, this means it's not possible to set another value for "readonly" on queries that use the POST method. Bypass setting "readonly" the first time if it's part of the Client's options already.

Checklist

Delete items not relevant to your PR:

  • [x] Unit and integration tests covering the common scenarios were added
  • [x] A human-readable description of the changes was provided so that we can include it in CHANGELOG later

OrionNebula avatar Nov 16 '24 00:11 OrionNebula

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Olivia Trewin seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Nov 16 '24 00:11 CLAassistant

Closing it for now. Let's discuss it in: https://github.com/ClickHouse/clickhouse-rs/issues/230

slvrtrn avatar Jun 09 '25 11:06 slvrtrn