update Src/Asp.Net/SqlSugar/Realization/Oracle/OracleProvider.cs.

新增 Line 90: sqlCommand.InitialLONGFetchSize = -1;
说明:默认值为0,修改为-1后未发现明显异常。应当可以将默认值修改为-1.
解决Oracle联查时无法正确获取到Long Raw=>byte[]的值。
原因:Oracle.ManagedDataAccess 未正确配置引起
参考文章:
[1]https://docs.oracle.com/cd/E85694_01/ODPNT/CommandInitialLONGFetchSize.htm
[2]https://renenyffenegger.ch/notes/Microsoft/dot-net/namespaces-classes/Oracle/ManagedDataAccess/long-raw
This commit is contained in:
小夜鲲 2021-08-10 09:48:35 +00:00 committed by Gitee
parent 3c19a0128f
commit 1f47f85c85

View File

@ -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;