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) //if (value.ToString().Length > 1000)
//{ //{
// ++i; ++i;
var parameterName = this.Builder.SqlParameterKeyWord + name + i; var parameterName = this.Builder.SqlParameterKeyWord + name + i;
this.Parameters.Add(new SugarParameter(parameterName, value)); this.Parameters.Add(new SugarParameter(parameterName, value));
return parameterName; 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) else if (type == UtilConstants.StringType || type == UtilConstants.ObjType)
{ {
if (value.ToString().Length > 1000) //if (value.ToString().Length > 1000)
{ //{
++i; ++i;
var parameterName = this.Builder.SqlParameterKeyWord + name + i; var parameterName = this.Builder.SqlParameterKeyWord + name + i;
this.Parameters.Add(new SugarParameter(parameterName, value)); this.Parameters.Add(new SugarParameter(parameterName, value));
return parameterName; return parameterName;
} //}
else //else
{ //{
return N + "'" + value.ToString().ToSqlFilter() + "'"; // return N + "'" + value.ToString().ToSqlFilter() + "'";
} //}
} }
else else
{ {

Loading…
Cancel
Save