Hello,
Executing the following code we have this error : 'Error LOB Variable :LOB_COLUMN cannot be nil'
procedure TForm1.btn1Click(Sender: TObject);
var LOB: TLOBLocator;
Buffer: array[0..99] of char;
begin
// begin
// ... (PL/SQL) ...
//select lob_column
//into :lob_column from my_view_test
//where code_pk ='A' for update nowait;
// ... (PL/SQL) ...
//end;
with LOBQuery do
begin
Execute;
LOB := getcomplexvariable('LOB_COLUMN') as TLOBLocator;
Buffer:='foo bar';
LOB.Write(Buffer, 100);
LOB.Trim; // Set the size to the current position, which is 100
session.Commit;
end;
end;
Why ?
We just want to update a clob column in the view.
JP
Executing the following code we have this error : 'Error LOB Variable :LOB_COLUMN cannot be nil'
procedure TForm1.btn1Click(Sender: TObject);
var LOB: TLOBLocator;
Buffer: array[0..99] of char;
begin
// begin
// ... (PL/SQL) ...
//select lob_column
//into :lob_column from my_view_test
//where code_pk ='A' for update nowait;
// ... (PL/SQL) ...
//end;
with LOBQuery do
begin
Execute;
LOB := getcomplexvariable('LOB_COLUMN') as TLOBLocator;
Buffer:='foo bar';
LOB.Write(Buffer, 100);
LOB.Trim; // Set the size to the current position, which is 100
session.Commit;
end;
end;
Why ?
We just want to update a clob column in the view.
JP