469,647 Members | 1,813 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

Problem in deploying the function on DB2

1
Hi all,

I am very new to the DB2 environment. I am facing a problem in deploying a function on the database. Function is calling a procedure which contains the update statement in it.

The function and procedure both have "MODIFIES SQL DATA". Procedure get deployed but when I am trying to deploy the function it says Multiple or conflicting keywords involving the "MODIFIES SQL DATA" clause are present.

The lines of code in function are as below:
CREATE FUNCTION getObjectID(nClassID INTEGER)
RETURNS INTEGER
LANGUAGE SQL
NOT DETERMINISTIC
EXTERNAL ACTION
MODIFIES SQL DATA
CALLED ON NULL INPUT
BEGIN ATOMIC

DECLARE nRet INTEGER DEFAULT 0;

CALL BCONE50.getObjectID_IMPL(nClassID, nRet);

RETURN nRet;
END


and for the procedure they looks like as below:

CREATE PROCEDURE getObjectID_IMPL
(
IN nClassID INTEGER,
OUT nRet INTEGER
)
LANGUAGE SQL
MODIFIES SQL DATA
CALLED ON NULL INPUT
BEGIN
-- logic
END

can anyone help me out how I can get rid of the error and deploy the function.

Thanks in advance.

Sandeep
Jan 2 '07 #1
0 1085

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Bob Z | last post: by
reply views Thread by horseface | last post: by
reply views Thread by Kevin Banks | last post: by
2 posts views Thread by Matias | last post: by
4 posts views Thread by Lars Netzel | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.