CLOB fields not generically assignable
Posted: Wed 02 Nov 2005 15:26
The scenario:
Delphi 7
NET connection
non-persistent fields (dynamic queries)
dbexpoda 2.50.6.0
When attempting to assign values (targetDS.FieldByName(fn).Value := sourceDS.FieldByName(fn).Value), I get the exception:
ORA-21560: argument 2 is null, invalid, or out of range
ORA-06512: at "SYS.DBMS_LOB", line 819
ORA-06512: at line 1
This code worked fine with dbexpoda 1.87, but we need to upgrade for Win2003 SP1 and Oracle 10gR2. Using an OCI connection also works, but we support so many DB servers that managing tnsnames.ora would be a nightmare.
I'm looking for either a workaround (other than determining whether the field is a CLOB or not before setting its value) or a fix.
-Tom R
Delphi 7
NET connection
non-persistent fields (dynamic queries)
dbexpoda 2.50.6.0
When attempting to assign values (targetDS.FieldByName(fn).Value := sourceDS.FieldByName(fn).Value), I get the exception:
ORA-21560: argument 2 is null, invalid, or out of range
ORA-06512: at "SYS.DBMS_LOB", line 819
ORA-06512: at line 1
This code worked fine with dbexpoda 1.87, but we need to upgrade for Win2003 SP1 and Oracle 10gR2. Using an OCI connection also works, but we support so many DB servers that managing tnsnames.ora would be a nightmare.
I'm looking for either a workaround (other than determining whether the field is a CLOB or not before setting its value) or a fix.
-Tom R