From 7a102cc953dfebb0e5278296fd399c55e2fdedbc Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 30 Apr 2022 11:10:19 +0800 Subject: [PATCH] Update Oracle --- .../Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs index 65f434ecf..1d54b41af 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/SqlBuilder/OracleInsertBuilder.cs @@ -136,8 +136,10 @@ namespace SqlSugar } else if (type == UtilConstants.ByteArrayType) { - string bytesString = "0x" + BitConverter.ToString((byte[])value).Replace("-", ""); - return bytesString; + ++i; + var parameterName = this.Builder.SqlParameterKeyWord + name + i; + this.Parameters.Add(new SugarParameter(parameterName, value,System.Data.DbType.Binary)); + return parameterName; } else if (type == UtilConstants.BoolType) { @@ -150,7 +152,7 @@ namespace SqlSugar } else if (type == UtilConstants.StringType || type == UtilConstants.ObjType) { - if (value.ToString().Length > 2000) + if (value.ToString().Length > 1000) { ++i; var parameterName = this.Builder.SqlParameterKeyWord + name + i;