mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-16 13:09:33 +08:00
Optimization error message
This commit is contained in:
parent
40ba3ea553
commit
cf524fd2d9
@ -57,9 +57,16 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (MySqlException ex)
|
catch (MySqlException ex)
|
||||||
|
{
|
||||||
|
if (ex.Message == "The used command is not allowed with this MySQL version")
|
||||||
|
{
|
||||||
|
Check.ExceptionEasy("connection string add : AllowLoadLocalInfile=true", "BulkCopy MySql连接字符串需要添加 AllowLoadLocalInfile=true; 添加后如果还不行Mysql数据库执行一下 SET GLOBAL local_infile=1 ");
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
CloseDb();
|
CloseDb();
|
||||||
|
Loading…
Reference in New Issue
Block a user