Quote:
|
Originally Posted by Jake K
i think MODIFIES SQL DATA is not the reason... to make myself sure about it, i removed it and compiled the procedure once again... .the same error occurs... as far as i know MODIFIES SQL DATA tells the database that the function modifies data persisted in the database...
Jake
|
In the SQL Ref volume 2 under CREATE FUNCTION you'll note that "MODIFIES SQL DATA" has a foot note (1), and that footnote reads:
"Notes: 1 Valid only if RETURNS specifies a table (TABLE column-list)"
What version of db2 are you using? When I copy and paste your exact definitions I see this error:
DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL0628N Multiple or conflicting keywords involving the "MODIFIES SQL DATA"
clause are present. LINE NUMBER=10. SQLSTATE=42613