Hello!
I have executed the following stored procedure without any errors in Oracle 8, but have been getting paranthesis error in the select statement for Oracle9i.
The stored procedure is.............
CREATE OR REPLACE FUNCTION getData (thisNode NUMBER) RETURN VARCHAR IS
nodeIsText BOOLEAN;
result VARCHAR (255);
BEGIN
SELECT **(NodeType = 3 OR NodeType = 4 OR NodeType = 8)*****
INTO nodeIsText
FROM t_Node
WHERE id = thisNode;
-- INVALID_ACCESS_ERR
IF NOT nodeIsText THEN
DOMException(15);
ELSIF nodeIsText IS NULL THEN
raise_application_error (-20211, 'Text type node with id ' || thisNode || ' does not exist');
ELSE
SELECT data
INTO result
FROM t_CharacterData
WHERE id = thisNode;
END IF;
RETURN result;
END getData;
......................
Can anyone suggest something on this issue.
Warm Regards
Nitin
I have executed the following stored procedure without any errors in Oracle 8, but have been getting paranthesis error in the select statement for Oracle9i.
The stored procedure is.............
CREATE OR REPLACE FUNCTION getData (thisNode NUMBER) RETURN VARCHAR IS
nodeIsText BOOLEAN;
result VARCHAR (255);
BEGIN
SELECT **(NodeType = 3 OR NodeType = 4 OR NodeType = 8)*****
INTO nodeIsText
FROM t_Node
WHERE id = thisNode;
-- INVALID_ACCESS_ERR
IF NOT nodeIsText THEN
DOMException(15);
ELSIF nodeIsText IS NULL THEN
raise_application_error (-20211, 'Text type node with id ' || thisNode || ' does not exist');
ELSE
SELECT data
INTO result
FROM t_CharacterData
WHERE id = thisNode;
END IF;
RETURN result;
END getData;
......................
Can anyone suggest something on this issue.
Warm Regards
Nitin