mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-09 10:55:02 +08:00
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:
@@ -1,4 +1,4 @@
|
|||||||
using Oracle.ManagedDataAccess.Client;
|
using Oracle.ManagedDataAccess.Client;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
@@ -87,6 +87,7 @@ namespace SqlSugar
|
|||||||
sqlCommand.BindByName = true;
|
sqlCommand.BindByName = true;
|
||||||
sqlCommand.CommandType = this.CommandType;
|
sqlCommand.CommandType = this.CommandType;
|
||||||
sqlCommand.CommandTimeout = this.CommandTimeOut;
|
sqlCommand.CommandTimeout = this.CommandTimeOut;
|
||||||
|
sqlCommand.InitialLONGFetchSize = -1;
|
||||||
if (this.Transaction != null)
|
if (this.Transaction != null)
|
||||||
{
|
{
|
||||||
sqlCommand.Transaction = (OracleTransaction)this.Transaction;
|
sqlCommand.Transaction = (OracleTransaction)this.Transaction;
|
||||||
|
|||||||
Reference in New Issue
Block a user