mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Update oracle
This commit is contained in:
@@ -65,7 +65,7 @@ namespace SqlSugar
|
|||||||
|
|
||||||
|
|
||||||
batchInsetrSql.Append("(");
|
batchInsetrSql.Append("(");
|
||||||
insertColumns = string.Join(",", item.Select(it =>FormatValue(it.Value)));
|
insertColumns = string.Join(",", item.Select(it =>FormatValue(it.Value,it.PropertyName)));
|
||||||
batchInsetrSql.Append(insertColumns);
|
batchInsetrSql.Append(insertColumns);
|
||||||
if (identities.HasValue())
|
if (identities.HasValue())
|
||||||
{
|
{
|
||||||
@@ -99,7 +99,8 @@ namespace SqlSugar
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public override object FormatValue(object value)
|
int i = 0;
|
||||||
|
public object FormatValue(object value,string name)
|
||||||
{
|
{
|
||||||
if (value == null)
|
if (value == null)
|
||||||
{
|
{
|
||||||
@@ -144,7 +145,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
if (value.ToString().Length > 2000)
|
if (value.ToString().Length > 2000)
|
||||||
{
|
{
|
||||||
return "to_clob('" + value.ToString().ToSqlFilter() + "')";
|
++i;
|
||||||
|
var parameterName = this.Builder.SqlParameterKeyWord + name + i;
|
||||||
|
this.Parameters.Add(new SugarParameter(parameterName, value));
|
||||||
|
return parameterName;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user