Invalid BLOB handle when setting TLobLocator.Buffering to True

ldsandon

Member³
This code:

Code:
Lob := TLOBLocator.Create(ssMain, otBLOB);
try
  Lob.Buffering := True;
raises an exception "TLobLocator: Invalid handle".

Delphi 7 (build 8.1), Oracle 9.2.0.5, DOA 4.0.6.2.
 
The buffering property if only valid for temporary LOB's (created with TLOBLocator.CreateTemporary). We'll raise an explicit exception instead of relying on the (vague) Oracle exception.
 
Back
Top