How to assign a CLOB object attribute?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
rmovchan
Posts: 8
Joined: Tue 09 Nov 2004 01:23

How to assign a CLOB object attribute?

Post by rmovchan » Wed 12 Mar 2008 06:22

Hello

I'm trying to work with objects that have CLOB attributes. TOraObject class doesn't provide a method to set an attribute as LOB (the property is read-only). I tried to use AttrAsLob[...].Assign method, but it doesn't mark the attribute as not-null. So the attribute remains null even after I assign a value to it. Is there a way to to it? I'm using ODAC 5.80.

Thanks

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 26 Mar 2008 10:26

AttrAsLob property returns TOraLob object. You can use AsString property, Assign, Write, LoadFromSream, LoadFromFile methods of TOraLob to assign a value to it.

You can assign False to AttrAsNull property to mark the attribute as NOT NULL.

Post Reply