How to insert a XML node over 4k into an Oracle column type of XMLType with cfqueryparam
In one of the XML file that I parse, I have a sub-node that is over 4 kilobyte in length, and I am trying to insert this XML into a column in an Oracle 10g table defined as XMLType.
<cfquery name="qInsert" database="abc">
insert into test_table (test_col)
values (
<cfqueryparam value="#variables.some_xml_4k_plus_in_size#" cfsqltype="cf_sql_clob">
)
</cfquery>
Now if only there is a: cfsqltype="cf_sql_xmltype", is there a wall to get something like that accomplished...
Error casting an object of type coldfusion.xml.XmlNodeList cannot be cast to java.lang.String to an incompatible type. This usually indicates a programming error in Java, although it could also mean you have tried to use a foreign object in a different way than it was designed.
coldfusion.xml.XmlNodeList cannot be cast to java.lang.String |
