mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update my sql error message
This commit is contained in:
parent
f4c7fe516c
commit
4db4a7c77d
Src/Asp.Net/SqlSugar
@ -1310,7 +1310,7 @@ namespace SqlSugar
|
||||
|
||||
#region Helper
|
||||
|
||||
private void SugarCatch(Exception ex, string sql, SugarParameter[] parameters)
|
||||
protected virtual void SugarCatch(Exception ex, string sql, SugarParameter[] parameters)
|
||||
{
|
||||
if (sql != null && sql.Contains("{year}{month}{day}"))
|
||||
{
|
||||
|
@ -139,5 +139,14 @@ namespace SqlSugar
|
||||
}
|
||||
return result;
|
||||
}
|
||||
protected override void SugarCatch(Exception ex, string sql, SugarParameter[] parameters)
|
||||
{
|
||||
base.SugarCatch(ex, sql, parameters);
|
||||
|
||||
if (ex is NullReferenceException&&SugarCompatible.IsFramework)
|
||||
{
|
||||
Check.ExceptionEasy($"To upgrade the MySql.Data. Error:{ex.Message}", $" 请先升级MySql.Data 。 详细错误:{ex.Message}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user