Oracle no parameter insert support clob

This commit is contained in:
sunkaixuan 2022-03-25 13:40:30 +08:00
parent 3faa67e273
commit c499b3b5bd

View File

@ -142,7 +142,14 @@ namespace SqlSugar
}
else if (type == UtilConstants.StringType || type == UtilConstants.ObjType)
{
return N + "'" + value.ToString().ToSqlFilter() + "'";
if (value.ToString().Length > 2000)
{
return "to_clob('" + value.ToString().ToSqlFilter() + "')";
}
else
{
return N + "'" + value.ToString().ToSqlFilter() + "'";
}
}
else
{