Working with user defined types
Posted: Wed 31 Oct 2012 12:21
Hi, I have a question regarding user defined types.
Here is an example with a standard Oracle defined type:
create table test (location SDO_GEOMETRY)
insert into test values(SDO_GEOMETRY(1,6, SDO_POINT_TYPE(10,15,30), SDO_ELEM_INFO_ARRAY(350), SDO_ORDINATE_ARRAY(2000)))
commit
select location from test
dbForge return this result:
MDSYS.SDO_GEOMETRY(1, 6, MDSYS.SDO_POINT_TYPE(10, 15, 30), MDSYS.SDO_ELEM_INFO_ARRAY(350), MDSYS.SDO_ORDINATE_ARRAY(2000))
SQLPLUS returns this result:
SDO_GEOMETRY(1, 6, SDO_POINT_TYPE(10, 15, 30), SDO_ELEM_INFO_ARRAY(350), SDO_ORDINATE_ARRAY(2000))
SQL Developer returns this result:
MDSYS.SDO_GEOMETRY(1,6,MDSYS.SDO_POINT_TYPE(10,15,30),MDSYS.SDO_ELEM_INFO_ARRAY(350),MDSYS.SDO_ORDINATE_ARRAY(2000))
TOraQuery returns this result (.AsString)
(1; 6; (10; 15; 30) ; (350; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ) ; (2000; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ) )
Is there another way of getting the result value other that .AsString? I would like to be able to get the value more like the other samples (other than TOraQuery) do.
FieldType is fkData and DataType is ftADT
Reg,
Arni Thor
Here is an example with a standard Oracle defined type:
create table test (location SDO_GEOMETRY)
insert into test values(SDO_GEOMETRY(1,6, SDO_POINT_TYPE(10,15,30), SDO_ELEM_INFO_ARRAY(350), SDO_ORDINATE_ARRAY(2000)))
commit
select location from test
dbForge return this result:
MDSYS.SDO_GEOMETRY(1, 6, MDSYS.SDO_POINT_TYPE(10, 15, 30), MDSYS.SDO_ELEM_INFO_ARRAY(350), MDSYS.SDO_ORDINATE_ARRAY(2000))
SQLPLUS returns this result:
SDO_GEOMETRY(1, 6, SDO_POINT_TYPE(10, 15, 30), SDO_ELEM_INFO_ARRAY(350), SDO_ORDINATE_ARRAY(2000))
SQL Developer returns this result:
MDSYS.SDO_GEOMETRY(1,6,MDSYS.SDO_POINT_TYPE(10,15,30),MDSYS.SDO_ELEM_INFO_ARRAY(350),MDSYS.SDO_ORDINATE_ARRAY(2000))
TOraQuery returns this result (.AsString)
(1; 6; (10; 15; 30) ; (350; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ) ; (2000; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ) )
Is there another way of getting the result value other that .AsString? I would like to be able to get the value more like the other samples (other than TOraQuery) do.
FieldType is fkData and DataType is ftADT
Reg,
Arni Thor