Truncating of CLOB fields to 4000 bytes in OraQuery
Posted: Tue 04 Jan 2005 14:09
hi!
i'm using the oraquery with a table including clob fields. the fields are:
KOBOLDID NUMBER NOT NULL
TEXTMEMO CLOB
now i'm using the following pascal code to update the clob field:
// var s : string
OraQuery.SQL.Text :=
'UPDATE kobold SET TEXTMEMO=:TEXTMEMO' +
' WHERE KOBOLDID=:KOBOLDID';
OraQuery.Params.ParamByName('KOBOLDID').AsInteger := id;
OraQuery.Params.ParamByName('TEXTMEMO').Value := s;
OraQuery.ExecSQL();
it works if the string s contains data <= 4000 bytes. if s is longer the field is truncated to exactly 4000 bytes. what could be wrong?
kr,
tr
i'm using the oraquery with a table including clob fields. the fields are:
KOBOLDID NUMBER NOT NULL
TEXTMEMO CLOB
now i'm using the following pascal code to update the clob field:
// var s : string
OraQuery.SQL.Text :=
'UPDATE kobold SET TEXTMEMO=:TEXTMEMO' +
' WHERE KOBOLDID=:KOBOLDID';
OraQuery.Params.ParamByName('KOBOLDID').AsInteger := id;
OraQuery.Params.ParamByName('TEXTMEMO').Value := s;
OraQuery.ExecSQL();
it works if the string s contains data <= 4000 bytes. if s is longer the field is truncated to exactly 4000 bytes. what could be wrong?
kr,
tr