[MDEV-8650] Table function: DROP FUNCTION doesn't work as expected Created: 2015-08-19 Updated: 2015-11-26 Resolved: 2015-11-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Procedure |
| Affects Version/s: | N/A |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This task is a part of dj 's GSoC project. Consider this testcase:
Then use it:
Then drop it:
And then try using it again:
Oops. Why is the function still here? Btw, if I restart the server, I get:
Apparently the stored function is sitting in some in-memory cache. |
| Comments |
| Comment by Sergei Petrunia [ 2015-08-19 ] |
|
dj, this can be debugged as follows: start two debuggers and debug two instances of mariadb. In one debugger, create/use/drop a regular stored function, in the other one - create/use/drop a table function. Debug what happens inside DROP FUNCTION in both cases and figure out where the difference comes from. |