From 30897a7187bad6ce79d49128f15c9b440498b0bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=A4=9C=E9=B2=B2?= <373484252@qq.com> Date: Tue, 10 Aug 2021 08:34:28 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20Src/Asp.Net/SqlSugar/Realization/O?= =?UTF-8?q?racle/DbBind/OracleDbBind.cs.=20"timestamp=20with=20time=20zone?= =?UTF-8?q?"=20=E9=87=8D=E5=A4=8D=EF=BC=8C"long=20raw"=E7=A9=BA=E6=A0=BC?= =?UTF-8?q?=E5=AF=BC=E8=87=B4"longraw"=E6=A0=BC=E5=BC=8F=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E8=AF=86=E5=88=AB=EF=BC=8C=E5=9B=A0=E4=B8=BA=E4=B8=8D=E7=9F=A5?= =?UTF-8?q?=E9=81=93=E5=85=B6=E4=BB=96=E4=BA=BA=E4=BC=9A=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E9=81=87=E5=88=B0"long=20raw"=E7=9A=84=E6=83=85=E5=86=B5?= =?UTF-8?q?=EF=BC=8C=E6=89=80=E4=BB=A5=E5=B8=8C=E6=9C=9B=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?"longraw"=E7=9A=84=E6=98=A0=E5=B0=84=E7=B1=BB=E5=9E=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs index 42fb2ccbc..4bc548857 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/DbBind/OracleDbBind.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -111,12 +111,12 @@ namespace SqlSugar new KeyValuePair("timestamp",CSharpDataType.DateTime), new KeyValuePair("timestamp with local time zone",CSharpDataType.DateTime), new KeyValuePair("timestamp with time zone",CSharpDataType.DateTime), - new KeyValuePair("timestamp with time zone",CSharpDataType.DateTime), new KeyValuePair("float",CSharpDataType.@decimal), new KeyValuePair("blob",CSharpDataType.byteArray), new KeyValuePair("long raw",CSharpDataType.byteArray), + new KeyValuePair("longraw",CSharpDataType.byteArray), new KeyValuePair("raw",CSharpDataType.byteArray), new KeyValuePair("bfile",CSharpDataType.byteArray), new KeyValuePair("varbinary",CSharpDataType.byteArray) }; From 1f47f85c85bb3f2d6a7eb6885c306f62250230fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=A4=9C=E9=B2=B2?= <373484252@qq.com> Date: Tue, 10 Aug 2021 09:48:35 +0000 Subject: [PATCH 2/2] =?UTF-8?q?update=20Src/Asp.Net/SqlSugar/Realization/O?= =?UTF-8?q?racle/OracleProvider.cs.=20=E6=96=B0=E5=A2=9E=20Line=2090:=20sq?= =?UTF-8?q?lCommand.InitialLONGFetchSize=20=3D=20-1;=20=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=EF=BC=9A=E9=BB=98=E8=AE=A4=E5=80=BC=E4=B8=BA0=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA-1=E5=90=8E=E6=9C=AA=E5=8F=91?= =?UTF-8?q?=E7=8E=B0=E6=98=8E=E6=98=BE=E5=BC=82=E5=B8=B8=E3=80=82=E5=BA=94?= =?UTF-8?q?=E5=BD=93=E5=8F=AF=E4=BB=A5=E5=B0=86=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA-1.=20=E8=A7=A3=E5=86=B3Oracle?= =?UTF-8?q?=E8=81=94=E6=9F=A5=E6=97=B6=E6=97=A0=E6=B3=95=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=88=B0Long=20Raw=3D>byte[]=E7=9A=84?= =?UTF-8?q?=E5=80=BC=E3=80=82=20=E5=8E=9F=E5=9B=A0=EF=BC=9AOracle.ManagedD?= =?UTF-8?q?ataAccess=20=E6=9C=AA=E6=AD=A3=E7=A1=AE=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E5=BC=95=E8=B5=B7=20=E5=8F=82=E8=80=83=E6=96=87=E7=AB=A0?= =?UTF-8?q?=EF=BC=9A=20[1]https://docs.oracle.com/cd/E85694=5F01/ODPNT/Com?= =?UTF-8?q?mandInitialLONGFetchSize.htm=20[2]https://renenyffenegger.ch/no?= =?UTF-8?q?tes/Microsoft/dot-net/namespaces-classes/Oracle/ManagedDataAcce?= =?UTF-8?q?ss/long-raw?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs b/Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs index 05c7bdeb9..cd6684702 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs @@ -1,4 +1,4 @@ -using Oracle.ManagedDataAccess.Client; +using Oracle.ManagedDataAccess.Client; using System; using System.Collections.Generic; using System.Data; @@ -87,6 +87,7 @@ namespace SqlSugar sqlCommand.BindByName = true; sqlCommand.CommandType = this.CommandType; sqlCommand.CommandTimeout = this.CommandTimeOut; + sqlCommand.InitialLONGFetchSize = -1; if (this.Transaction != null) { sqlCommand.Transaction = (OracleTransaction)this.Transaction;