Hi, everybody
I encountered a very strange behavior of DB2. There are two SELECT statements listed below. The difference is presencing UPPER function in the second statement. When I execute these statements (in the same session without any other statements) the first one works properly but the second one returns an exception
SQL0551N "USER1" does not have the privilege to perform operation "EXECUTE"
on object "SCHEMA1.FUNCTION1". SQLSTATE=42501
The first statement:
select *
from table1
where SCHEMA1.FUNCTION1 ( column1 ) = 1
The second statement:
select *
from table1
where SCHEMA1.FUNCTION1 ( upper(column1) ) = 1
table1.column1 and the parameter of SCHEMA1.FUNCTION1 have varchar type.
Execute permition granted to a group containing USER1.
DB2 version: 8.1.1.88 + FixPack 9
Platform: AIX
Any ideas what causes the difference in behavoir. Please advise.