We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ParseQuery in in collector.go incorrectly handles case when there are params before and after query
clickhouse-bulk/collector.go
Line 315 in b34e73c
It might cause incorrect results or panic: runtime error: slice bounds out of range depending on params length.
panic: runtime error: slice bounds out of range
Instead of
if eoq >= 0 { q = queryString[i+6 : eoq+6] params = queryString[:i] + queryString[eoq+7:] }
It should be:
if eoq >= 0 { q = queryString[i+6 : i+eoq+6] params = queryString[:i] + queryString[i+eoq+7:] }
Example of problematic string: queryString = "a=11111111111111111111111111111&query=insert into x format fmt&a=1"
queryString = "a=11111111111111111111111111111&query=insert into x format fmt&a=1"
The text was updated successfully, but these errors were encountered:
88b7276
Merge pull request #58 from valodzka/master
94c164d
fix #57
No branches or pull requests
ParseQuery in in collector.go incorrectly handles case when there are params before and after query
clickhouse-bulk/collector.go
Line 315 in b34e73c
It might cause incorrect results or
panic: runtime error: slice bounds out of range
depending on params length.Instead of
It should be:
Example of problematic string:
queryString = "a=11111111111111111111111111111&query=insert into x format fmt&a=1"
The text was updated successfully, but these errors were encountered: