new definition of udf not being picked up after drop/recreate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Released
|
High
|
Cliff Gray |
Bug Description
When a function is dropped and new one with the same name but different defn. is created it is not picked by.
This is from trafci:
SQL>cqd allow_udf 'on';
--- SQL operation complete.
SQL>create function ADD2(int, char) returns (ADD2 int)
language c parameter style sql external name 'add2'
library TEST107;
--- SQL operation complete.
SQL>values(
ADD2
-----------
98
--- 1 row(s) selected.
SQL>values(
*** ERROR[8402] A string overflow occurred during the evaluation of a character expression. Conversion of Source Type:CHAR(
SQL>values(
*** ERROR[4455] The supplied type for input value 2 of user-defined function TRAFODION.
SQL>drop function add2;
--- SQL operation complete.
SQL>control query default query_cache '0';
--- SQL operation complete.
SQL>control query default query_cache reset;
--- SQL operation complete.
SQL>control query default COMP_BOOL_215 reset;
--- SQL operation complete.
SQL>control query default ROUTINE_CACHE_SIZE reset;
--- SQL operation complete.
SQL>create function ADD2(int,int) returns (ADD2 int)
language c parameter style sql external name 'add2'
library TEST107;
--- SQL operation complete.
SQL>values(
ADD2
-----------
NULL
--- 1 row(s) selected.
SQL>values(
*** ERROR[4455] The supplied type for input value 2 of user-defined function TRAFODION.
SQL>values(
ADD2
-----------
123
--- 1 row(s) selected.
SQL>drop function add2;
--- SQL operation complete.
Changed in trafodion: | |
milestone: | none → r1.1 |
Changed in trafodion: | |
assignee: | Suresh Subbiah (suresh-subbiah) → Cliff Gray (cliff-gray) |
status: | New → In Progress |
Changed in trafodion: | |
status: | Fix Committed → Fix Released |
Fixed as of change 1296.