Commit 6ec5cff
committed
Always
When using the `clickhouse-cpp` library, always `ResetConnection` on
error and release the insert block. Otherwise, the client can be stuck
in an unusable state that can interfere with future queries. This also
changes the behavior after `EndInsert` fails, changing it to a proper
error rather than a `NOTICE`; it doesn't seem right to let the next
query fail, as the previous implementation had it.ResetConnection on error1 parent 4932618 commit 6ec5cff
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| 294 | + | |
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
301 | | - | |
302 | | - | |
| 302 | + | |
| 303 | + | |
303 | 304 | | |
304 | | - | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
| 319 | + | |
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
| |||
585 | 586 | | |
586 | 587 | | |
587 | 588 | | |
| 589 | + | |
| 590 | + | |
588 | 591 | | |
589 | 592 | | |
590 | | - | |
591 | | - | |
592 | 593 | | |
593 | 594 | | |
594 | 595 | | |
595 | 596 | | |
596 | 597 | | |
597 | 598 | | |
| 599 | + | |
| 600 | + | |
598 | 601 | | |
599 | 602 | | |
600 | 603 | | |
| |||
0 commit comments