Print Thread
XMLType and TOracleDataset, unable to update if ResolveToDataset is false.
#7826 09/28/05 06:35 PM
Joined: Jul 2003
Posts: 112
Fino Mornasco, Como, Italy
L
Member
OP Offline
Member
L
Joined: Jul 2003
Posts: 112
Fino Mornasco, Como, Italy
I have this table:

Code
CREATE TABLE IKON_SYSTEM.DECISION_TREES
 (DECISION_TREE_ID NUMBER NOT NULL,
  PROJECT_ID NUMBER NOT NULL,
  ACTIVE NUMBER(1,0) DEFAULT 0  NOT NULL,
  TREE SYS.XMLTYPE)
when I acces it via a TOracleDataset it uses a "TMemoField" for the XMLTYPE field (which is stored as a CLOB), and it works. Also I use Midas/Datasnap, and when I update the field it generates (ResolveToDataset is false):

Code
update "IKON_SYSTEM"."DECISION_TREES"  set
 "TREE" = EMPTY_CLOB()
where
 "DECISION_TREE_ID" = :V0
 RETURNING 
TREE 
INTO 
:V1 
This returns the error:

ORA-00932: inconsistent datatypes: expected NUMBER - got CLOB.

Of course Midas sees the standard "ftOraClob" type and generates the wrong SQL, and this is not a DOA problem. It works if I set "ResolveToDataset" to True.

My question is: could DOA do something different (i.e. a TXMLField type), or because Midas does not understand XML datatypes there's no way but to update via the dataset, or using a custom apply via TOracleQuery?


LDS
Re: XMLType and TOracleDataset, unable to update if ResolveToDataset is false.
#7827 09/28/05 10:06 PM
Joined: Aug 1999
Posts: 22,208
Member
Offline
Member
Joined: Aug 1999
Posts: 22,208
I don't immediately see a solution, but we'll investigate this.


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.198s Queries: 13 (0.115s) Memory: 2.4971 MB (Peak: 3.0378 MB) Data Comp: Off Server Time: 2024-05-05 04:03:02 UTC
Valid HTML 5 and Valid CSS