mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update exp to sql
This commit is contained in:
@@ -141,7 +141,15 @@ namespace SqlSugar
|
||||
}
|
||||
else
|
||||
{
|
||||
inValues.Add(item);
|
||||
if (item is string &&item.HasValue() && model?.Conext?.SugarContext?.Context?.CurrentConnectionConfig?.DbType == DbType.MySql)
|
||||
{
|
||||
var newValue= item.ToString().Replace("\\", "\\\\");
|
||||
inValues.Add(newValue);
|
||||
}
|
||||
else
|
||||
{
|
||||
inValues.Add(item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user