Browse Source

Update US7ASCLL

pull/31/head
sunkaixuan 2 years ago
parent
commit
353c5d763c
  1. 2
      Src/OracleUS7ASCII/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs
  2. 14
      Src/OracleUS7ASCII/SqlSugar/Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs

2
Src/OracleUS7ASCII/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs

@ -188,7 +188,7 @@ namespace SqlSugar
{
//if (value.ToString().Length > 1000)
//{
// ++i;
++i;
var parameterName = this.Builder.SqlParameterKeyWord + name + i;
this.Parameters.Add(new SugarParameter(parameterName, value));
return parameterName;

14
Src/OracleUS7ASCII/SqlSugar/Realization/Oracle/SqlBuilder/OracleUpdateBuilder.cs

@ -98,17 +98,17 @@ namespace SqlSugar
}
else if (type == UtilConstants.StringType || type == UtilConstants.ObjType)
{
if (value.ToString().Length > 1000)
{
//if (value.ToString().Length > 1000)
//{
++i;
var parameterName = this.Builder.SqlParameterKeyWord + name + i;
this.Parameters.Add(new SugarParameter(parameterName, value));
return parameterName;
}
else
{
return N + "'" + value.ToString().ToSqlFilter() + "'";
}
//}
//else
//{
// return N + "'" + value.ToString().ToSqlFilter() + "'";
//}
}
else
{

Loading…
Cancel
Save