We have this error when updating a table with a BLOLB field with the TOraSql component (TOraQuery works fine).
We are using Delphi XE2 Updt 4 and ODAC 9.4.13ORA-22275: le pointeur de LOB indiqué n'est pas valide
Fields :
FieldKey is Integer not null
FieldValue is BLOB
Code: Select all
OraSql := TOraSql.Create(nil);
try
OraSql.Session := OraSession;
OraSql.AutoCommit := false;
OraSql.Sql.text := 'Insert Into TableTest (FieldKey, FieldValue) Values(:Key, :Value)';
OraSql.Prepared := true;
OraSql.Params.ParamByName('Key').AsInteger := 1;
OraSql.Params.ParamByName('Value').ParamType := ptInput;
OraSql.Params.ParamByName('Value').DataType := ftOraBlob;
OraSql.Params.ParamByName('Value').LoadFromStream(TmpStream, ftOraBlob);
OraSql.Execute;
finally
OraSql.Free;
end;
Regards,