You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @funvit
First of all, thank you for the excellent reproducible example. This helps a lot.
clickhouse-go behavior is to handle ClickHouse errors and mark the connection as degraded.
Your solution indeed makes code not panic; however, in my opinion, it shouldn't get to query execution.
Please see my PR #1396 that adds a necessary checks before any connection action is performed in stdlib's driver.
Observed
tx.ExecContext
(ortx.Exec
)Expected behaviour
Second transaction must not panics.
Code example
Error log
Details
Environment
clickhouse-go
version: v2.17.1database/sql
compatible driverCREATE TABLE
statements for tables involved: see in testPossible fix
In file
conn.go
, replacec.buffer = nil
toc.buffer.Reset()
:The text was updated successfully, but these errors were encountered: