[Tarantool-patches] [tarantool-patches] Re: [PATCH v3 4/4] sql: use name instead of function pointer for UDF

Nikita Pettik korablev at tarantool.org
Mon Oct 14 20:10:54 MSK 2019


On 07 Oct 17:21, Kirill Shcherbatov wrote:
> > 
> > Usually we protect pointers with schema_version, rather than avoid
> > them at all. Please take a look how iterators work.
> > 
> 
> We've discussed this question in T. and decided that current approach is ok except the
> necessity to rename OP_Function to OP_FunctionByName. Done.
> 
> ===========================================
> 
> This patch changes OP_Function parameters convention: now a
> function's name is passed instead of pointer to the function
> object. This allows to normally handle the situation, when UDF
> has been deleted to the moment of the VDBE code execution.
> In particular case this may happen with CK constraints that
> refers to a deleted persistent function.
> ---

Could you add test case covering mentioned situation?



More information about the Tarantool-patches mailing list