On Fri, Jan 30, 2004 at 03:01:03PM +0100, Hendrik Fuss wrote: > > > The attached patch (based on DBD-Oracle 1.15) enables you to upload > > > XMLType objects (OCIXMLTypePtr) by binding them as SQLT_NTY. In dbdimp.c > > > I added a function dbd_rebind_ph_nty for that purpose. You need to > > > create that XMLType object first using the C function > > > createxmlfromstring in xml.c. > > > > I there any chance you could post that as a context diff (diff -u ideally > > or else diff -c)? It's much safer and more useful. Thanks. > > Good idea. Here's a diff -u of dbdimp.c.
Thanks. > By the way: I have thougt about general support of named types, not just > XMLType, but you need to get the type description (TDO) from somewhere. > My code just checks if the perl variable is a blessed reference of > "OCIXMLTypePtr". Doing the equivalent of m/^OCI(\w+)Ptr$/ and then calling OCITypeByName with $1 uppercased might take us (or someone) a step further. > Also note that my code can't handle downloading of XMLType objects yet. I'll trust that some kind soul with an itch will send a patch :-) Thanks again Hendrik. Tim.
