Browse Source

Update UpdateBuilder

SqlSugar5
sunkaixuan 2 years ago
parent
commit
752f375707
  1. 9
      Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs

9
Src/Asp.Net/SqlSugar/Abstract/SqlBuilderProvider/UpdateBuilder.cs

@ -366,7 +366,14 @@ namespace SqlSugar
} }
else if (UtilMethods.IsNumber(type.Name)) else if (UtilMethods.IsNumber(type.Name))
{ {
return value; if (value.ObjToString().Contains(","))
{
return $"'{value}'";
}
else
{
return value;
}
} }
else else
{ {

Loading…
Cancel
Save