You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Oracle 11g database with Nhibernate 5.4.6 (driver class Nhibernate.Driver.OracleDataClientDriver) and Trying to insert the document of type byte array (of length >2000) into a Long Raw column type, getting the below exception:
ORA-22835: Insufficient buffer size for converting CLOB to CHAR or BLOB to RAW (actual: 81863, maximum: 2000)
,
using (_Session.BeginTransaction())
{
MyLog myLog = new MyLog();
myLog.Id = 1;
myLog.DateTimeUpdate = DateTime.Today; myLog.Image = new byte[2001];
myLog.Comments = "New Log data";
_Session.Save(myLog);
_Session.GetCurrentTransaction().Commit();
}
This insertion was working fine with Nhibernate 3.3 and same oracle column & database.
hibernate.cfg:
The text was updated successfully, but these errors were encountered:
We are using Oracle 11g database with Nhibernate 5.4.6 (driver class Nhibernate.Driver.OracleDataClientDriver) and Trying to insert the document of type byte array (of length >2000) into a Long Raw column type, getting the below exception:
ORA-22835: Insufficient buffer size for converting CLOB to CHAR or BLOB to RAW (actual: 81863, maximum: 2000)
,
using (_Session.BeginTransaction())
{
MyLog myLog = new MyLog();
myLog.Id = 1;
myLog.DateTimeUpdate = DateTime.Today;
myLog.Image = new byte[2001];
myLog.Comments = "New Log data";
_Session.Save(myLog);
_Session.GetCurrentTransaction().Commit();
}
This insertion was working fine with Nhibernate 3.3 and same oracle column & database.
hibernate.cfg:
The text was updated successfully, but these errors were encountered: