• Konstantin Osipov's avatar
    A fix for · 29defdb5
    Konstantin Osipov authored
    Bug#12093 "SP not found on second PS execution if another thread 
    drops other SP in between" and
    Bug#21294 "executing a prepared statement that executes a stored 
    function which was recreat"
    
    Stored functions are resolved at prepared statement prepare only.
    If someone flushes the stored functions cache between prepare and
    execute, execution fails.
    
    The fix is to detect the situation of the cache flush and automatically
    reprepare the prepared statement after it.
    29defdb5
sp-error.test 53.7 KB