I have a table named "Order Details", when copy data using MySqlBulkCopy, it throws: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Order Details CHARACTER SET utf8mb4 FIELDS TERMINATED BY ' ' ESCAPED BY '\\' LIN' at line 1.
I debugged to find the command text is:
LOAD DATA LOCAL INFILE ':SOURCE:2b58ba020ec74eeb89684c96bb6afd67' INTO TABLE Order Details CHARACTER SET utf8mb4 FIELDS TERMINATED BY ' ' ESCAPED BY '\\' LINES TERMINATED BY '
' IGNORE 0 LINES (`OrderID`,`ProductID`,`UnitPrice`,`Quantity`,`Discount`) ;
So, it needs to handle the issue like handle column name above calling method QuoteIdentifier.
The text was updated successfully, but these errors were encountered:
I need to look into whether that's for backwards compatibility with Connector/NET, which may expect the user to quote the table name manually for MySqlBulkLoader. If so, the fix will be to quote it in MySqlBulkCopy.
I have a table named "Order Details", when copy data using MySqlBulkCopy, it throws:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Order Details CHARACTER SET utf8mb4 FIELDS TERMINATED BY ' ' ESCAPED BY '\\' LIN' at line 1
.I debugged to find the command text is:
So, it needs to handle the issue like handle column name above calling method QuoteIdentifier.
The text was updated successfully, but these errors were encountered: