Oracle proc clob 4000+ bug

This commit is contained in:
sunkaixuna 2021-11-08 16:11:45 +08:00
parent e9d25bfedf
commit 4324f30728
2 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,7 @@ namespace SqlSugar
public class SugarParameter : DbParameter
{
public bool IsRefCursor { get; set; }
public bool IsClob { get; set; }
public SugarParameter(string name, object value)
{
this.Value = value;

View File

@ -134,6 +134,10 @@ namespace SqlSugar
{
sqlParameter.OracleDbType = OracleDbType.RefCursor;
}
if (parameter.IsClob)
{
sqlParameter.OracleDbType = OracleDbType.Clob;
}
if (sqlParameter.DbType == System.Data.DbType.Guid)
{
sqlParameter.DbType = System.Data.DbType.String;