Skip to content

Bulk Import - throw exception in case column mapping is wrong? #814

@chester89

Description

@chester89

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions