[Tarantool-patches] [PATCH v4 37/53] sql: introduce mem_set_frame()

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Tue Mar 30 02:06:18 MSK 2021


Thanks for the patch!

> diff --git a/src/box/sql/mem.c b/src/box/sql/mem.c
> index 3701741ef..078de0e62 100644
> --- a/src/box/sql/mem.c
> +++ b/src/box/sql/mem.c
> @@ -604,6 +604,15 @@ mem_set_pointer(struct Mem *mem, void *ptr)
>  	mem->field_type = field_type_MAX;
>  }
>  
> +void
> +mem_set_frame(struct Mem *mem, struct VdbeFrame *frame)
> +{
> +	mem_clear(mem);
> +	mem->flags = MEM_Frame;
> +	mem->u.pFrame = frame;
> +	mem->field_type = field_type_MAX;

The type is already installed by mem_clear().


More information about the Tarantool-patches mailing list