mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-25 04:27:14 +08:00
Oracle no parameter insert support clob
This commit is contained in:
@@ -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() + "'";
|
||||
|
||||
Reference in New Issue
Block a user