mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update exp to sql
This commit is contained in:
parent
b9c17143c2
commit
a8cb4fabb6
@ -141,7 +141,15 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
else
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user