Skip to content

MySqlBulkCopy inserts 0 rows and fails to surface diagnostic information #1005

Closed
@masonwheeler

Description

@masonwheeler

I'm attempting to use WriteToServer(IDataReader) to copy data from another database. The destination table exists, and is empty, and the columns I'm writing to exist in the table, so there's no good reason why it should fail. But it errors out on me, saying that 0 rows out of 10 were written.

When I debug into the source I find, in ResultSet.ReadResultSetHeaderAsync, that the server is returning 10 skipped rows with 30 warnings... and then it never does anything to retrieve the warnings from the server, so I have no idea what the problem is or how to deal with it!

Is there any way I can retrieve this information?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions