@@ -2,8 +2,8 @@ create or replace type body ut_data_value_anydata as
22
33 constructor function ut_data_value_anydata(self in out nocopy ut_data_value_anydata, a_value anydata) return self as result is
44 begin
5- self.value := a_value;
6- self.type := 'anydata';
5+ self.datavalue := a_value;
6+ self.datatype := 'anydata';
77 return;
88 end;
99
@@ -13,22 +13,22 @@ create or replace type body ut_data_value_anydata as
1313 l_type anytype;
1414 l_anydata_accessor varchar2(30);
1515 begin
16- if self.value is null then
16+ if self.datavalue is null then
1717 l_is_null := true;
18- elsif self.value .gettypename like '%.%' then
18+ elsif self.datavalue .gettypename like '%.%' then
1919 --XMLTYPE doesn't like the null beeing passed to ANYDATA so we need to check if anydata holds null Object/collection
2020 --check if typename is a schema based object
2121 l_anydata_accessor :=
22- case when self.value .gettype(l_type) = dbms_types.typecode_object then 'getObject' else 'getCollection' end;
22+ case when self.datavalue .gettype(l_type) = dbms_types.typecode_object then 'getObject' else 'getCollection' end;
2323 execute immediate '
2424 declare
25- l_data '||self.value .gettypename()||';
25+ l_data '||self.datavalue .gettypename()||';
2626 l_value anydata := :a_value;
2727 x integer;
2828 begin
2929 x := l_value.'||l_anydata_accessor||'(l_data);
3030 :l_data_is_null := ut_utils.boolean_to_int(l_data is null);
31- end;' using in self.value , out l_data_is_null;
31+ end;' using in self.datavalue , out l_data_is_null;
3232
3333 l_is_null := ut_utils.int_to_boolean(l_data_is_null);
3434 end if;
@@ -42,7 +42,7 @@ create or replace type body ut_data_value_anydata as
4242 l_result := ut_utils.to_string( to_char(null) );
4343 else
4444 ut_assert_processor.set_xml_nls_params();
45- l_result := ut_utils.to_string( xmltype(self.value ).getclobval() );
45+ l_result := ut_utils.to_string( xmltype(self.datavalue ).getclobval() );
4646 ut_assert_processor.reset_nls_params();
4747 end if;
4848 return l_result;
0 commit comments