-
Notifications
You must be signed in to change notification settings - Fork 562
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
QueryContext not supported in prepared statement in SQL driver compatibility #1203
Comments
Hi @srebhan This is sort of the consequence In general,
I think it makes sense to follow the deprecation note and if possible to use driver instance to query. |
@jkaflik not sure I can follow. In my code above I first prepare a statement and then use We are bound to Golang's SQL framework and cannot use the native client in Telegraf's Is there any way to use prepared statements with the v2 |
You are right. I looked on a wrong function.
Yes, since like you mention:
It makes sense to be the most compatible. In that case, I can't promise this can be developed this week on my end. I am also happy to review a PR. |
Describe the bug
When executing a prepared query statement, the SQL client returns
only Exec method supported in batch mode
.Steps to reproduce
docker run --name clickhouse -p 9000:9000 -e ALLOW_EMPTY_PASSWORD=yes bitnami/clickhouse
go run main.go
Expected behaviour
Query is executed and rows are returned without an error.
Code example
Configuration
Environment
ClickHouse server
The text was updated successfully, but these errors were encountered: