mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-24 04:53:45 +08:00
Update DbExtensions
This commit is contained in:
@@ -53,7 +53,7 @@ namespace SqlSugar
|
|||||||
if (!value.IsNullOrEmpty())
|
if (!value.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
value = value.Replace("'", "''");
|
value = value.Replace("'", "''");
|
||||||
if (value.IndexOf("+")>0&&value.IndexOf(@"\''")>0) value=value.Replace("\\","\\\\");
|
if (value.IndexOf(")")>0&&value.IndexOf(@"\''")>0) value=value.Replace("\\","\\\\");
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user