jonwagner / Insight.Database

Fast, lightweight .NET micro-ORM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BulkCopy is not working with MySqlConnector

elandev opened this issue · comments

Describe the bug

MySqlBulkdLoader is working, but when I attempt to use the method connection.BulkCopy with a list, I get the following exception:

MySqlConnector.MySqlException: 'You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0 * FROM TestInsight;
SET sql_select_limit=default' at line 1'

Steps to reproduce

  1. Load the attached project with Visual Studio 2022.
  2. Set up MariaDB as the database (10.11.2-MariaDB).
  3. Edit the server, database name and credentials for the connection string.
  4. Restore Nuget packages and build the solution.
  5. Run the project.

The method BulkLoadDataMySql, which uses MySqlBulkLoader works.

The method BulkLoadDataInsight does not work and you will see the exception.

Expected behavior

Expected the bulk copy to insert all items in the list.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue still exists. Is there an update on this?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Unfortunately, we can't accept project zip files as reproduction cases. Please paste sufficient code to reproduce here, or submit a PR with a failing test case.