-
Notifications
You must be signed in to change notification settings - Fork 139
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
Unexpected readonly mode with specific string in query #194
Comments
@JanMikes you can try https://github.com/simPod/PhpClickHouseClient since there's no magic between usercode and issuing request so it might suite you better. |
MakarMS
pushed a commit
to MakarMS/phpClickHouse
that referenced
this issue
Jan 16, 2024
A fix has been made |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I have experienced exceptions during inserts. It was weird, because out of approx 1B inserts, there were only few that failed on this exception:
After some debugging i was able to create minimal query to replicate the problem:
TLDR: the query will match regexp in
\ClickHouseDB\Query\Query::isUseInUrlBindingsParams()
Then it removes the
readonly: 0
default value -readonly=1
will be added to the database connection URL.How to replicate:
Expected behaviour - readonly: 0 in the URL (just changed value from
{a:b}
to{a: b}
Working workaround - adds space after
:
in the whole query if it matches the regexp:Is there any way, other than modify the string value inserting? Thank you
The text was updated successfully, but these errors were encountered: