I have search this problem on internet, but my issue is different.
I'm using Fluent NHibernate
and try insert data with sql query:
var query = "INSERT INTO TABLE_NAME('ID','CONTENT') VALUES(:ID, :CONTENT)";
var executedQuery = Session.CreateSQLQuery(query);
executedQuery.SetParameter("ID", data.Id);
executedQuery.SetParameter("CONTENT", data.Content);
executedQuery.ExecuteUpdate();
Here data
passing to method. In database(Oracle 11g) datatype of CONTENT is NCLOB
. When try to insert data, I get this error:
ORA-01461: can bind a LONG value only for insert into a LONG column
What is problem in here?
data.Content
? – M. Wiśnickistring
, example: "<p>Some text</p>". if string length is bigger than 2000 this error occurred, in case <2000 insert work. – vaqifrv