Hello.
I just set up bulk copy in one of our projects.
Did it all according to documentation, code runs without errors - but nothing gets written to DB.
I triple checked - it turned out I had column mappings SourceOrdinal wrong (thought it started at 1).
Is it possible to throw exception in this case?
Read initial issue - and realised it reports the number of rows as if it's actually written them (so if you ask to insert 10k, it'll say 10k, even if it actually inserted none).
I use server 5.7.29 with 0.66.0 library version
Hello.
I just set up bulk copy in one of our projects.
Did it all according to documentation, code runs without errors - but nothing gets written to DB.
I triple checked - it turned out I had column mappings
SourceOrdinalwrong (thought it started at 1).Is it possible to throw exception in this case?
Read initial issue - and realised it reports the number of rows as if it's actually written them (so if you ask to insert 10k, it'll say 10k, even if it actually inserted none).
I use server 5.7.29 with 0.66.0 library version