Browse Source

Oracle no parameter insert support clob

pull/14/MERGE
sunkaixuan 3 years ago
parent
commit
c499b3b5bd
  1. 7
      Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs

7
Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs

@ -141,9 +141,16 @@ namespace SqlSugar
return "to_date('" + date.ToString("yyyy-MM-dd HH:mm:ss") + "', 'YYYY-MM-DD HH24:MI:SS') ";
}
else if (type == UtilConstants.StringType || type == UtilConstants.ObjType)
{
if (value.ToString().Length > 2000)
{
return "to_clob('" + value.ToString().ToSqlFilter() + "')";
}
else
{
return N + "'" + value.ToString().ToSqlFilter() + "'";
}
}
else
{
return N + "'" + value.ToString() + "'";

Loading…
Cancel
Save