A deliberately setup bulk insert results into error during finalize() call:
Error: Io { kind: BrokenPipe, message: "An error occurred during the attempt of performing I/O: An existing connection was forcibly closed by the remote host. (os error 10054)" }
SQL Server logs show:
Error: 4014, Severity: 20, State: 17.
This is fully reproducible and appears to be related to packet sizing: increasing/decreasing number of rows by 1 from 1481 results in a successful insert, as changing first column name to C1....
Tracing shows that indeed last packet size is over 4096 bytes:
PR: https://github.com/prisma/tiberius/pull/266
A deliberately setup bulk insert results into error during
finalize()
call:SQL Server logs show:
This is fully reproducible and appears to be related to packet sizing: increasing/decreasing number of rows by 1 from 1481 results in a successful insert, as changing first column name to
C1
....Tracing shows that indeed last packet size is over 4096 bytes:
Repro code with
tiberius = { version = "0.11.3", features = ["chrono", "time", "tds73"] }
: