TOraObject with XMLTYPE attribute

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
m.ghilardi
Posts: 41
Joined: Thu 13 Mar 2014 11:14

TOraObject with XMLTYPE attribute

Post by m.ghilardi » Tue 04 Aug 2015 09:18

I have to develop an application that fetches objects from an Oracle AQ. The Objects are defined as follows

Code: Select all

create or replace type notify_aq_t as object
(
  a_notify_id        number(18),
  a_notify_time    timestamp(0) with time zone,
  a_id                   number(18),
  a_class_name  varchar2(30),
  a_edit_time      timestamp(0) with time zone,
  a_xml               sys.xmltype,
)
/
How do you read the a_xml attribute of this object?

Code: Select all

TOraObject* payload = new TOraObject(new TOraType(AQSession->OCISvcCtx, L"notify_aq_t"));
AQ->Dequeue(payload);
TOraXML* xml = new TOraXML(AQSession->OCISvcCtx, new TOraType(AQSession->OCISvcCtx, L"sys.xmltype"));
xml->Assign(payload->AttrAsObject[L"a_xml"]);//Cannot convert....

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TOraObject with XMLTYPE attribute

Post by AlexP » Thu 06 Aug 2015 08:40

Hello,

Please send the full sample demonstrating the problem to alexp*devart*com, and specify the exact versions of ODAC, IDE, Oracle client and server.

m.ghilardi
Posts: 41
Joined: Thu 13 Mar 2014 11:14

Re: TOraObject with XMLTYPE attribute

Post by m.ghilardi » Mon 10 Aug 2015 10:03

Hello,
I sent the email you requested. If you need further informations please ask.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TOraObject with XMLTYPE attribute

Post by AlexP » Tue 11 Aug 2015 08:43

Thank you for the sample, we have reproduced the described problem and will investigate the reason for such behavior.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TOraObject with XMLTYPE attribute

Post by AlexP » Fri 04 Sep 2015 12:57

We have added support for xmltype in objects. This feature will be available in the new version, that will be released next week.

Post Reply