Oracle LOB fields with TTable and TQuery components
Hi!
I want to make an existing Delphi 4.0 application (BDE 5.01) to work with
Oracle8i. This application uses TTable and TQuery components for creating
and accessing data. For example it creates a table like this:
with NewTable do
begin
DatabaseName := 'OneDatabase';
TableName := 'OneTable';
TableType := ttDefault;
FieldDefs.Clear;
FieldDefs.Add('Field1', ftInteger, 0, True);
FieldDefs.Add('Field2', ftGraphic, 0, False);
FieldDefs.Add('Field3', ftMemo, 0, False);
if Exists then DeleteTable;
CreateTable;
end;
The problem is, that these FieldTypes are mapped to Oracle's LONG and LONG
RAW data types as any other like ftBlob, and Oracle supports only one such
field per table. I know that BLOB, CLOB fields don't have these
restrictions. But how can i make BDE to create such fields? Is there any
solution except CREATE TABLE scripts?
If not, and i create my tables with CREATE TABLE scripts, will i be able to
attach TTable and TQuery components to these tables?
Thanks,
Attila
--
For replies, remove the "eks" from the host name