Is it possible to compare variables of raw datatypes? I'm working with XMLDOM.DomNodes, which is records with one field by itself:
TYPE DOMNode IS RECORD (id RAW(12));
So I have two nodes, then could I compare them by their id fields? I tried several samples and at first glance it seems to work:
FUNCTION findParentNode(p_node IN xmldom.domnode) RETURN PLS_INTEGER
AS
nRetVal PLS_INTEGER;
BEGIN
FOR i IN ParentNodes.First .. ParentNodes.Last
LOOP
IF ParentNodes(i).id = p_node.id THEN
nRetVal := i;
EXIT;
END IF;
END LOOP;
RETURN nRetVal;
END;
but one thing in Oracle documentation worries me: Raw data is like VARCHAR2 data, except that PL/SQL does not interpret raw data What does it mean? If pl/sql doesn't interpret raw, then could it compare?